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