You are here

function spaces_og_menu_alter in Spaces 7.3

Same name and namespace in other branches
  1. 6.3 spaces_og/spaces_og.module \spaces_og_menu_alter()
  2. 7 spaces_og/spaces_og.module \spaces_og_menu_alter()

Implements hook_menu_alter().

File

spaces_og/spaces_og.module, line 190

Code

function spaces_og_menu_alter(&$items) {
  if (isset($items['node/%node/features'])) {
    $items['node/%node/features']['access callback'] = 'spaces_og_access_admin';
    $items['node/%node/features']['access arguments'] = array(
      1,
    );
  }
  if (isset($items['node/%node/overrides'])) {
    $items['node/%node/overrides']['access callback'] = 'spaces_og_access_admin';
    $items['node/%node/overrides']['access arguments'] = array(
      1,
    );
  }
}