hook_enable

  1. drupal
    1. 5 install.php
    2. 6 install.php
    3. 7
Versions
5 – 7 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

Code

drupal/modules/system/system.api.php, line 3273

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