Skip navigation
Help

hook_disable

6 install.php hook_disable()
7 system.api.php hook_disable()

Perform necessary actions before module is disabled.

The hook is called every time the module is disabled.

See also

hook_uninstall()

hook_modules_disabled()

Related topics

12 functions implement hook_disable()

1 invocation of hook_disable()

File

drupal/modules/system/system.api.php, line 3310
Hooks provided by Drupal core and the System module.

Code

function hook_disable() {
  mymodule_cache_rebuild();
}