hook_disable

  1. drupal
    1. 5 install.php
    2. 6 install.php
    3. 7
    4. 8
Versions
5 – 8 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

Code

modules/system/system.api.php, line 3346

<?php
function hook_disable() {
  mymodule_cache_rebuild();
}
?>