function spaces_preset_enable in Spaces 6.2
Same name and namespace in other branches
- 5.2 spaces_admin.inc \spaces_preset_enable()
- 6 spaces_admin.inc \spaces_preset_enable()
1 call to spaces_preset_enable()
- _spaces_preset_enable_page in ./
spaces_admin.inc - Page callback wrapper around spaces_preset_enable()
File
- ./
spaces_admin.inc, line 364
Code
function spaces_preset_enable($type, $preset) {
$disabled = variable_get('spaces_disabled_presets', array());
if (!isset($disabled[$type])) {
$disabled[$type] = array();
}
if (isset($disabled[$type][$preset])) {
unset($disabled[$type][$preset]);
variable_set('spaces_disabled_presets', $disabled);
}
}