You are here

function space_customizer_menu::customize in Spaces 6

Same name and namespace in other branches
  1. 5.2 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 630

Class

space_customizer_menu
Customizer for feature menus.

Code

function customize($space, $feature, &$menu = NULL) {
  $customizer = array();
  foreach ($space->customizer as $c) {
    $customizer = array_merge($customizer, $c['menu']);
  }
  foreach ($menu as $k => $item) {
    if (isset($customizer[$item['href']])) {
      $menu[$k]['title'] = $customizer[$item['href']]['title'];
    }
  }
  return $menu;
}