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()

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();
}