You are here

function space_customizer_menu::customize in Spaces 5.2

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

Overrides space_customizer::customize

3 calls to space_customizer_menu::customize()
spaces_features_menu in ./spaces.module
Returns a links array in the theme_links() format of the current space's menu items for features accessible to the current user. Each item has a keyed array of children items if applicable.
space_customizer_menu::form in ./spaces.module
_spaces_core_block_book in spaces_core/spaces_core.module
Spaces version of the book nav block -- shows all root books in a group

File

./spaces.module, line 472

Class

space_customizer_menu
Customizer for feature menus.

Code

function customize($space, $feature, $menu = NULL) {
  if (isset($space->customizer[$feature]['menu'])) {
    $custom_menu = array();
    $customizer = $space->customizer[$feature]['menu'];
    foreach ($menu as $path => $item) {
      if (isset($customizer[$path])) {
        $menu[$path] = $customizer[$path];
      }
    }
  }
  return $menu;
}