hook_modules_disabled

Versions
7
hook_modules_disabled($modules)

Perform necessary actions after modules are disabled.

This function differs from hook_disable() as it gives all other modules a chance to perform actions when modules are disabled, whereas hook_disable() will only be called on the module actually being disabled.

See also

hook_disable()

Parameters

$modules An array of the disabled modules.

Related topics

Code

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

<?php
function hook_modules_disabled($modules) {
  if (in_array('lousy_module', $modules)) {
    mymodule_enable_functionality();
  }
}
?>
Login or register to post comments
 
 

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.