[development] programmatic creation of node

Hans Salvisberg drupal at salvisberg.com
Sat Mar 8 20:30:44 UTC 2008


Not calling nodeapi/prepare before nodeapi/update will cause problems 
for the Subscriptions module.

It needs to be able to tell whether the user has just published a 
previously unpublished node, and to do that it needs to know the old 
$node->status.

I think you should call nodeapi/prepare also before nodeapi/insert, 
because that's what core does.




More information about the development mailing list