hook_modules_installed

Versions
7
hook_modules_installed($modules)

Perform necessary actions after modules are installed.

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

See also

hook_install()

Parameters

$modules An array of the installed modules.

Related topics

Code

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

<?php
function hook_modules_installed($modules) {
  if (in_array('lousy_module', $modules)) {
    variable_set('lousy_module_conflicting_variable', FALSE);
  }
}
?>
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.