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 2073 - Hooks provided by Backdrop core and the System module.
Code
function hook_modules_preinstall($modules) {
my_module_cache_clear();
}