By number3 on
Is there a way to force the install hook for a module to run again?
Since I've added a custom module, I've added some code to the install hook. I disable the module and re-enable it again, however the code in the install hook doesn't get run. It ran the very first time I installed the module.
Comments
Yes
just go to the database and select the table named 'system' and browse through the table there u will find an entry corresponding to ur module .just delete that entry and then disable and enable ur module.
Enable and disable hooks
You can catch on hook_enable and hook_disable to perform your setup tasks.