hook_disable

  1. drupal
    1. 5
    2. 6
    3. 7 system.api.php
    4. 8 system.api.php
Versions
5 – 8 hook_disable()

Perform necessary actions before module is disabled.

The hook is called everytime module is disabled.

Related topics

Code

documentation/developer/hooks/install.php, line 245

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