hook_enable()
docs-5/hooks/install.php, line 236
Perform necessary actions after module is enabled.
The hook is called everytime module is enabled.
| Name | Description |
|---|---|
| Hooks | Allow modules to interact with the Drupal core. |
<?php
function hook_enable() {
mymodule_cache_rebuild();
}
?>