function variable_module_uninstall in Variable 7
Same name and namespace in other branches
- 7.2 variable.inc \variable_module_uninstall()
Uninstall variables for module
This will be called from variable_modules_uninstalled(), no need to implement it directly.
1 string reference to 'variable_module_uninstall'
- variable_modules_uninstalled in ./
variable.module - Implements hook_modules_uninstalled().
File
- ./
variable.inc, line 272 - Variable API module. Extended API.
Code
function variable_module_uninstall($module) {
$list = variable_get('variable_module_list', array());
if (isset($list[$module])) {
// This is a plain list of variables so we can use raw delete.
array_map('variable_delete', $list[$module]);
unset($list[$module]);
variable_set('variable_module_list', $list);
}
}