You are here

function space_customizer_menu::submit in Spaces 5.2

Same name and namespace in other branches
  1. 6 spaces.module \space_customizer_menu::submit()
  2. 6.2 spaces.spaces.inc \space_customizer_menu::submit()

Overrides space_customizer::submit

File

./spaces.module, line 461

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;
}