[development] Doing hook_update_N() when module is installed
nan_wich at bellsouth.net
Thu Nov 12 13:55:27 UTC 2009
Ken Rickard wrote:
> To run an action the first time a module is installed,
> use hook_enable() in D5 or D6.
Yes, this works, but be aware that any time the modules is disabled and
re-enabled, this hook will fire.
My suggestion would rather be to just call the appropriate hook_update_N()
within the hook_install(). It may look a bit of a kludge, but it is the
safer thing to do.
Nancy E. Wichmann, PMP
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King,
More information about the development