hook_disable

Definition

hook_disable()
developer/hooks/install.php, line 246

Description

Perform necessary actions before module is disabled.

The hook is called everytime module is disabled.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

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

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.