1 system.api.php | hook_modules_disabled($modules) |
Perform necessary actions after modules are disabled.
This function differs from hook_disable() in that it gives all other modules a chance to perform actions when modules are disabled, whereas hook_disable() is only called on the module actually being disabled.
Parameters
$modules: An array of the modules that were disabled.
See also
Related topics
File
- core/
modules/ system/ system.api.php, line 2139 - Hooks provided by Backdrop core and the System module.
Code
function hook_modules_disabled($modules) {
if (in_array('lousy_module', $modules)) {
my_module_enable_functionality();
}
}