[development] hook_nodeapi()

John VanDyk jvandyk at iastate.edu
Tue Jan 2 16:18:17 UTC 2007


>In the following page
>http://api.drupal.org/api/HEAD/function/hook_nodeapi it says: "If you
>are writing a node module, do not use this hook to perform actions on
>your type of node alone. Instead, use the hooks set aside for node
>modules, such as hook_insert() and hook_form()."
>
>My question is why is it better to use the standalone functions
>instead of the centralized one?

Node hooks are run before nodeapi hooks. Other modules that are 
hooking into your node type expect your module to have done its work 
already.


More information about the development mailing list