function space_customizer_menu::submit in Spaces 6
Same name and namespace in other branches
- 5.2 spaces.module \space_customizer_menu::submit()
- 6.2 spaces.spaces.inc \space_customizer_menu::submit()
Overrides space_customizer::submit
File
- ./
spaces.module, line 619
Class
- space_customizer_menu
- Customizer for feature menus.
Code
function submit($space, $feature, $value) {
$features = spaces_features();
$feature_menu = $features[$feature]->spaces['menu'];
foreach ($value as $path => $item) {
if ($item == $feature_menu[$path]) {
unset($value[$path]);
}
}
return $value;
}