| Versions | |
|---|---|
| 7 | hook_modules_installed($modules) |
Perform necessary actions after modules are installed.
This function differs from hook_install() in that it gives all other modules a chance to perform actions when a module is installed, whereas hook_install() is only called on the module actually being installed. See module_enable() for a detailed description of the order in which install and enable hooks are invoked.
$modules An array of the installed modules.
drupal/
<?php
function hook_modules_installed($modules) {
if (in_array('lousy_module', $modules)) {
variable_set('lousy_module_conflicting_variable', FALSE);
}
}
?>