hook_enable

developer/hooks/install.php, line 259

Versions
5 – 7
hook_enable()

Perform necessary actions after module is enabled.

The hook is called everytime module is enabled.

Related topics

Code

<?php
function hook_enable() {
  mymodule_cache_rebuild();
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.