1.20.x 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

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

Code

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