1.20.x system.api.php hook_modules_preinstall($modules)

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

File

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

Code

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