function seo_checker_submodule_uninstall in SEO Compliance Checker 6
Same name and namespace in other branches
- 6.2 seo_checker.install \seo_checker_submodule_uninstall()
This function should be called by modules that implement SEO rules when they are uninstalled. It cleans up their variables.
Parameters
string $module: The name of the submodule.
2 calls to seo_checker_submodule_uninstall()
- basic_seo_rules_uninstall in basic_seo_rules/
basic_seo_rules.install - Implementation of hook_uninstall().
- keyword_rules_uninstall in keyword_rules/
keyword_rules.install - Implementation of hook_uninstall().
File
- ./
seo_checker.install, line 57 - Installer for the SEO Compliance Checker
Code
function seo_checker_submodule_uninstall($modulename) {
/* delete variables holding thresholds */
$rules = module_invoke($modulename, 'register_seo_rules');
foreach ($rules as $rid => $rule) {
variable_del('seo_threshold_' . $rid);
}
}