hook_enable

Definition

hook_enable()
contributions/docs/developer/hooks/install.php, line 259

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

function hook_enable() {
  mymodule_cache_rebuild();
}