You are here

function space_customizer_menu::submit in Spaces 6.2

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

Overrides space_customizer::submit

File

./spaces.spaces.inc, line 102

Class

space_customizer_menu
Customizer for feature menus.

Code

function submit($space, $feature, $value) {
  $customizer = $space->customizer['menu'];
  foreach ($value as $path => $item) {
    if ($item['title'] == $item['default']) {
      unset($customizer[$path]);
    }
    else {
      if ($item['title'] != $item['default']) {
        $customizer[$path] = $item['title'];
      }
    }
  }
  return $customizer;
}