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.