function hook_disable

Same name and namespace in other branches
  1. 7.x drupal-7.x/modules/system/system.api.php \hook_disable()

Perform necessary actions before module is disabled.

The hook is called everytime module is disabled.

Related topics

3 functions implement hook_disable()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

module_disable in drupal-6.x/includes/module.inc
Disable a given set of modules.
php_disable in drupal-6.x/modules/php/php.install
Implementation of hook_disable().
system_modules_disable in drupal-6.x/modules/system/system.admin.inc
Form process callback function to disable check boxes.
1 invocation of hook_disable()
module_disable in drupal-6.x/includes/module.inc
Disable a given set of modules.

Archivo

documentation-6.x/developer/hooks/install.php, line 360
Documentation for the installation and update system.

Código

function hook_disable() {
  mymodule_cache_rebuild();
}