Definition

hook_enable()
docs-5/hooks/install.php, line 236

Description

Perform necessary actions after module is enabled.

The hook is called everytime module is enabled.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

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