function hook_modules_preenable

Perform necessary actions before modules are enabled.

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

Parameters

$module: An array of modules about to be enabled.

Related topics

1 invocation of hook_modules_preenable()
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 2179
Hooks provided by Drupal core and the System module.

Code

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