1.20.x system.api.php hook_enable()

Perform necessary actions after module is enabled.

The hook is called every time the module is enabled. It should be implemented in the module's .install file. The implementation can rely on the .module file being loaded.

See also

module_enable()

hook_install()

hook_modules_enabled()

Related topics

File

modules/system/system.api.php, line 3017
Hooks provided by Backdrop core and the System module.

Code

function hook_enable() {
  mymodule_cache_rebuild();
}