[development] hook_nodeapi()

Larry Garfield larry at garfieldtech.com
Wed Jan 3 01:20:57 UTC 2007


On Tuesday 02 January 2007 4:34 pm, Jeremy Epstein wrote:
> In Drupal 5.0, the difference between hook_insert() / hook_update()
> and friends, and hook_nodeapi(), is smaller than ever; and there is
> less need than ever to actually still have the former in core. With
> the new CCK-partially-in-core features, it's likely that before long,
> there will be no such thing as module-defined node types. There will
> only be user-defined node types.

I hope we don't go quite that far.  I can see all-nodes-are-CCK as a nice 
future, but I still want to be able to provide a pre-defined node type as 
part of my module.  Not everything should be a recipe.  

The ideal, methinks, would be import/export/hook support for CCK the same way 
Views has.  Then many modules simply become a pre-packaged node (user 
editable), some pre-packaged views (user-editable), maybe a pre-packaged 
field type if needed, and a little glue code.  

That would be terrific.  Not allowing modules to define nodes at all but 
relying on the user, that would be ugly.

-- 
Larry Garfield			AIM: LOLG42
larry at 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


More information about the development mailing list