On Friday 07 March 2008, Dave Fletcher wrote:
IMO it's an interesting solution to have a widget for the purpose, though I'm not aware of other similar pre-fab widgets in Drupal.
Thinking about this, yeah an admin setting seems wrong.
If you want your module to automatically enable something for new node types, I'd suggest altering the node type form and put a default-on checkbox. That way, at least the feature can be disabled immediately after creating the type, and users don't have to hunt down the setting.
Cheers,
--fletch
Great. Then your module has the same problem as comment module, where I have to go disable comments on every frickin' node type except for "forum" just because my client decided they wanted forums at the last minute. Inverted options are a PITA, even when spread out to separate node type forms. -- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson