function hook_disable

hook_disable()

Perform necessary actions before module is disabled.

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

See also

hook_uninstall()

hook_modules_disabled()

Related topics

File

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

Code

function hook_disable() {
  mymodule_cache_rebuild();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_disable/7.x