hook_enable

  1. drupal
    1. 5
    2. 6
    3. 7 system.api.php
    4. 8 system.api.php
Versions
5 – 8 hook_enable()

Perform necessary actions after module is enabled.

The hook is called everytime module is enabled.

Related topics

Code

documentation/developer/hooks/install.php, line 236

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