/** * Perform necessary actions before a module is uninstalled. * * @param string $module * The name of the module about to be uninstalled. */ function hook_module_preuninstall($module) { mymodule_cache_clear(); }
/** * Perform necessary actions before modules are enabled. * * This function allows all modules to react prior to a module being enabled. * * @param $module * An array of modules about to be enabled. */ function hook_modules_preenable($modules) { mymodule_cache_clear(); }