function spaces_og_menu_alter in Spaces 6.3
Same name and namespace in other branches
- 7.3 spaces_og/spaces_og.module \spaces_og_menu_alter()
- 7 spaces_og/spaces_og.module \spaces_og_menu_alter()
Implementation of hook_menu_alter().
File
- spaces_og/
spaces_og.module, line 183
Code
function spaces_og_menu_alter(&$items) {
foreach ($items as $key => $value) {
if (substr($key, 0, 20) == "node/%node/features/") {
$items[$key]['access callback'] = 'spaces_og_access_admin';
$items[$key]['access arguments'] = array(
1,
);
}
}
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,
);
}
}