1 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

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

Code

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