1 taxonomy.module | taxonomy_menu() |
Implements hook_menu().
File
- core/
modules/ taxonomy/ taxonomy.module, line 312 - Enables the organization of content into categories.
Code
function taxonomy_menu() {
$items['admin/structure/taxonomy'] = array(
'title' => 'Taxonomy',
'description' => 'Manage tagging, categorization, and classification of your content.',
'page callback' => 'taxonomy_overview_vocabularies',
'access callback' => 'taxonomy_vocabulary_overview_access',
'file' => 'taxonomy.admin.inc',
);
$items['admin/structure/taxonomy/list'] = array(
'title' => 'List vocabularies',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/structure/taxonomy/add'] = array(
'title' => 'Add vocabulary',
'page callback' => 'backdrop_get_form',
'page arguments' => array('taxonomy_form_vocabulary'),
'access arguments' => array('administer taxonomy'),
'type' => MENU_LOCAL_ACTION,
'file' => 'taxonomy.admin.inc',
);
$items['taxonomy/term/%taxonomy_term'] = array(
'title' => 'Taxonomy term',
'title callback' => 'taxonomy_term_title',
'title arguments' => array(2),
// The page callback also invokes backdrop_set_title() in case the menu
// router's title is overridden by a menu link.
'page callback' => 'taxonomy_term_page',
'page arguments' => array(2),
'access arguments' => array('access content'),
'file' => 'taxonomy.pages.inc',
);
$items['taxonomy/term/%taxonomy_term/view'] = array(
'title' => 'View',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['taxonomy/term/%taxonomy_term/edit'] = array(
'title' => 'Edit',
'page callback' => 'backdrop_get_form',
// Pass a NULL argument to ensure that additional path components are not
// passed to taxonomy_form_term() as the vocabulary machine name argument.
'page arguments' => array('taxonomy_form_term', 2, NULL),
'access callback' => 'taxonomy_term_access',
'access arguments' => array('update', 2),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
'file' => 'taxonomy.admin.inc',
);
$items['taxonomy/term/%taxonomy_term/delete'] = array(
'title' => 'Delete',
'page callback' => 'backdrop_get_form',
'page arguments' => array('taxonomy_term_confirm_delete', 2),
'access callback' => 'taxonomy_term_access',
'access arguments' => array('delete', 2),
'type' => MENU_LOCAL_TASK,
'weight' => 11,
'file' => 'taxonomy.admin.inc',
);
$items['taxonomy/term/%taxonomy_term/feed'] = array(
'title' => 'Taxonomy term',
'title callback' => 'taxonomy_term_title',
'title arguments' => array(2),
'page callback' => 'taxonomy_term_feed',
'page arguments' => array(2),
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
'file' => 'taxonomy.pages.inc',
// Prevent Layout from affecting our markup by specifying delivery callback.
'delivery callback' => 'backdrop_deliver_html_page',
);
$items['taxonomy/autocomplete'] = array(
'title' => 'Autocomplete taxonomy',
'page callback' => 'taxonomy_autocomplete',
'delivery callback' => 'backdrop_json_deliver',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
'file' => 'taxonomy.pages.inc',
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary'] = array(
'title callback' => 'taxonomy_vocabulary_title',
'title arguments' => array(3),
'page callback' => 'backdrop_get_form',
'page arguments' => array('taxonomy_overview_terms', 3),
'access callback' => 'taxonomy_vocabulary_access',
'access arguments' => array(FALSE, 3),
'file' => 'taxonomy.admin.inc',
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary/list'] = array(
'title' => 'List terms',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -20,
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary/configure'] = array(
'title' => 'Configure',
'page callback' => 'backdrop_get_form',
'page arguments' => array('taxonomy_form_vocabulary', 3),
'access arguments' => array('administer taxonomy'),
'type' => MENU_LOCAL_TASK,
'weight' => -10,
'file' => 'taxonomy.admin.inc',
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary/add'] = array(
'title' => 'Add term',
'page callback' => 'backdrop_get_form',
'page arguments' => array('taxonomy_form_term', NULL, 3),
'access callback' => 'taxonomy_vocabulary_access',
'access arguments' => array('create', 3),
'type' => MENU_LOCAL_ACTION,
'file' => 'taxonomy.admin.inc',
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary/delete'] = array(
'title' => 'Delete',
'page callback' => 'backdrop_get_form',
'page arguments' => array('taxonomy_vocabulary_confirm_delete', 3),
'access callback' => 'taxonomy_vocabulary_access',
'access arguments' => array(FALSE, 3),
'type' => MENU_CALLBACK,
'file' => 'taxonomy.admin.inc',
);
return $items;
}