function taxonomy_tools_menu in Taxonomy Tools 8
Same name and namespace in other branches
- 7 taxonomy_tools.module \taxonomy_tools_menu()
Implements hook_menu().
File
- ./
taxonomy_tools.module, line 14 - Drupal hooks and functions to work with taxonomy terms.
Code
function taxonomy_tools_menu() {
$items = array();
$items['admin/config/taxonomy-tools'] = array(
'title' => 'Taxonomy Tools',
'description' => 'Taxonomy Tools configuration',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'access administration pages',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/overview'] = array(
'title' => 'Overview',
'description' => 'Vocabulary overview table',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_tools_overview',
3,
5,
),
'file' => 'taxonomy_tools.admin.inc',
'file path' => drupal_get_path('module', 'taxonomy_tools'),
'type' => MENU_LOCAL_TASK,
'weight' => 50,
'access callback' => 'taxonomy_tools_overview_access',
'access arguments' => array(
3,
),
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/overview/%/add'] = array(
'title' => 'Add term',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_form_term',
array(),
3,
),
'file path' => drupal_get_path('module', 'taxonomy'),
'file' => 'taxonomy.admin.inc',
'access callback' => 'taxonomy_tools_overview_access',
'access arguments' => array(
3,
TRUE,
),
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/overview/add'] = array(
'title' => 'Add term',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_form_term',
array(),
3,
),
'file path' => drupal_get_path('module', 'taxonomy'),
'file' => 'taxonomy.admin.inc',
'access callback' => 'taxonomy_tools_overview_access',
'access arguments' => array(
3,
TRUE,
),
);
$items['taxonomy/term/%taxonomy_term/overview'] = array(
'title' => 'Subtree',
'description' => 'Subtree overview table',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_tools_overview',
NULL,
2,
),
'file' => 'taxonomy_tools.admin.inc',
'file path' => drupal_get_path('module', 'taxonomy_tools'),
'access arguments' => array(
'use taxonomy tools',
),
'weight' => 50,
'type' => MENU_LOCAL_TASK,
);
$items['taxonomy/term/%taxonomy_term/overview/add/%taxonomy_vocabulary_machine_name'] = array(
'title' => 'Add term',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_form_term',
array(),
5,
),
'file path' => drupal_get_path('module', 'taxonomy'),
'file' => 'taxonomy.admin.inc',
'access callback' => 'taxonomy_tools_overview_access',
'access arguments' => array(
5,
TRUE,
),
);
return $items;
}