hook_enable

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

modules/system/system.api.php, line 3334

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