You are here

function spaces_taxonomy_menu in Spaces 6

Same name and namespace in other branches
  1. 6.3 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_menu()
  2. 6.2 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_menu()
  3. 7.3 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_menu()
  4. 7 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_menu()

Implementation of hook_menu().

File

spaces_taxonomy/spaces_taxonomy.module, line 196

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;
}