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.
$modules: An array of the modules that were disabled.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_modules_disabled($modules) {
if (in_array('lousy_module', $modules)) {
mymodule_enable_functionality();
}
}