1 system.api.php hook_modules_preenable($modules)

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

File

core/modules/system/system.api.php, line 2085
Hooks provided by Backdrop core and the System module.

Code

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