function spaces_taxonomy_menu in Spaces 6.2
Same name and namespace in other branches
- 6.3 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_menu()
- 6 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_menu()
- 7.3 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_menu()
- 7 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_menu()
Implementation of hook_menu().
File
- spaces_taxonomy/
spaces_taxonomy.module, line 220
Code
function spaces_taxonomy_menu() {
$items = array();
$items['admin/build/spaces/taxonomy'] = array(
'title' => 'Taxonomy',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spaces_taxonomy_settings',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer spaces',
),
'type' => MENU_LOCAL_TASK,
);
$spaces_items = spaces_active_space_menu('taxonomy', FALSE);
foreach ($spaces_items as $path => $item) {
$spaces_items[$path]['access callback'] = 'user_access';
$spaces_items[$path]['access arguments'] = array(
'administer spaces',
);
}
$items = $items + $spaces_items;
return $items;
}