Skip navigation
Help

hook_enable

6 install.php hook_enable()
7 system.api.php hook_enable()

Perform necessary actions after module is enabled.

The hook is called every time the module is enabled.

See also

module_enable()

hook_install()

hook_modules_enabled()

Related topics

16 functions implement hook_enable()

1 invocation of hook_enable()

File

drupal/modules/system/system.api.php, line 3298
Hooks provided by Drupal core and the System module.

Code

function hook_enable() {
  mymodule_cache_rebuild();
}