[development] reverse selection of node types is clumsy

David Timothy Strauss david at fourkitchens.com
Sat Mar 8 18:13:06 UTC 2008


Drupal is clearly moving to more of a decorator pattern with nodes, so it is becoming increasingly important that we have good, consistent interfaces for controlling which node types modules "decorate" and how.

http://en.wikipedia.org/wiki/Decorator_pattern

----- "Dave Fletcher" <fletch at splendora.com> 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


More information about the development mailing list