hook_enable

Definition

hook_enable()
developer/hooks/install.php, line 237

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();
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.