You are here

function taxonomy_menu in Drupal 6

Same name and namespace in other branches
  1. 4 modules/taxonomy.module \taxonomy_menu()
  2. 5 modules/taxonomy/taxonomy.module \taxonomy_menu()
  3. 7 modules/taxonomy/taxonomy.module \taxonomy_menu()

Implementation of hook_menu().

File

modules/taxonomy/taxonomy.module, line 109
Enables the organization of content into categories.

Code

function taxonomy_menu() {
  $items['admin/content/taxonomy'] = array(
    'title' => 'Taxonomy',
    'description' => 'Manage tagging, categorization, and classification of your content.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'taxonomy_overview_vocabularies',
    ),
    'access arguments' => array(
      'administer taxonomy',
    ),
    'file' => 'taxonomy.admin.inc',
  );
  $items['admin/content/taxonomy/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/content/taxonomy/add/vocabulary'] = array(
    'title' => 'Add vocabulary',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'taxonomy_form_vocabulary',
    ),
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_LOCAL_TASK,
    'parent' => 'admin/content/taxonomy',
    'file' => 'taxonomy.admin.inc',
  );
  $items['admin/content/taxonomy/edit/vocabulary/%taxonomy_vocabulary'] = array(
    'title' => 'Edit vocabulary',
    'page callback' => 'taxonomy_admin_vocabulary_edit',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'taxonomy.admin.inc',
  );
  $items['admin/content/taxonomy/edit/term'] = array(
    'title' => 'Edit term',
    'page callback' => 'taxonomy_admin_term_edit',
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'taxonomy.admin.inc',
  );
  $items['taxonomy/term/%'] = array(
    'title' => 'Taxonomy term',
    'page callback' => 'taxonomy_term_page',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'taxonomy.pages.inc',
  );
  $items['taxonomy/autocomplete'] = array(
    'title' => 'Autocomplete taxonomy',
    'page callback' => 'taxonomy_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'taxonomy.pages.inc',
  );
  $items['admin/content/taxonomy/%taxonomy_vocabulary'] = array(
    'title' => 'List terms',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'taxonomy_overview_terms',
      3,
    ),
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'taxonomy.admin.inc',
  );
  $items['admin/content/taxonomy/%taxonomy_vocabulary/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/content/taxonomy/%taxonomy_vocabulary/add/term'] = array(
    'title' => 'Add term',
    'page callback' => 'taxonomy_add_term_page',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_LOCAL_TASK,
    'parent' => 'admin/content/taxonomy/%taxonomy_vocabulary',
    'file' => 'taxonomy.admin.inc',
  );
  return $items;
}