function hook_modules_preinstall

Perform necessary actions before modules are installed.

This function allows all modules to react prior to a module being installed.

Parameters

$modules: An array of modules about to be installed.

Related topics

1 invocation of hook_modules_preinstall()
module_enable in drupal/core/includes/module.inc
Enables or installs a given list of modules.

File

drupal/core/modules/system/system.api.php, line 2167
Hooks provided by Drupal core and the System module.

Code

function hook_modules_preinstall($modules) {
  mymodule_cache_clear();
}