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,
Jr.


Reply via email to