hook_disable

Definition

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

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();
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.