You are here

function taxonomy_manager_menu in Taxonomy Manager 7

Same name and namespace in other branches
  1. 5 taxonomy_manager.module \taxonomy_manager_menu()
  2. 6.2 taxonomy_manager.module \taxonomy_manager_menu()
  3. 6 taxonomy_manager.module \taxonomy_manager_menu()

Implements hook_menu().

File

./taxonomy_manager.module, line 20
Taxonomy Manager

Code

function taxonomy_manager_menu() {
  $items['admin/structure/taxonomy_manager/voc'] = array(
    'title' => 'Taxonomy Manager',
    'description' => 'Administer vocabularies with the Taxonomy Manager',
    'page callback' => 'taxonomy_manager_voc_list',
    'access arguments' => array(
      'administer taxonomy',
    ),
    'file' => 'taxonomy_manager.admin.inc',
  );
  $items['admin/structure/taxonomy_manager/voc/%taxonomy_vocabulary_machine_name'] = array(
    'title callback' => 'taxonomy_admin_vocabulary_title_callback',
    'title arguments' => array(
      4,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'taxonomy_manager_form',
      4,
    ),
    'access arguments' => array(
      'administer taxonomy',
    ),
    'file' => 'taxonomy_manager.admin.inc',
  );
  $items['admin/structure/taxonomy_manager/childform'] = array(
    'page callback' => 'taxonomy_manager_tree_build_child_form',
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/structure/taxonomy_manager/weight'] = array(
    'page callback' => 'taxonomy_manager_update_weights',
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'taxonomy_manager.admin.inc',
  );
  $items['admin/structure/taxonomy_manager/siblingsform'] = array(
    'page callback' => 'taxonomy_manager_tree_build_siblings_form',
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/structure/taxonomy_manager/export'] = array(
    'page callback' => 'taxonomy_manager_export',
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'taxonomy_manager.admin.inc',
  );
  $items['admin/structure/taxonomy_manager/double-tree/%taxonomy_vocabulary_machine_name/%taxonomy_vocabulary_machine_name'] = array(
    'title' => 'Taxonomy Manager',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'taxonomy_manager_double_tree_form',
      4,
      5,
    ),
    'access arguments' => array(
      'administer taxonomy',
    ),
    'file' => 'taxonomy_manager.admin.inc',
  );
  $items['admin/config/user-interface/taxonomy-manager-settings'] = array(
    'title' => 'Taxonomy Manager',
    'description' => 'Advanced settings for the Taxonomy Manager',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'taxonomy_manager_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'taxonomy_manager.admin.inc',
  );
  $items['taxonomy_manager/autocomplete'] = array(
    'title' => 'Taxonomy Manager Autocomplete',
    'page callback' => 'taxonomy_manager_autocomplete_load',
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'taxonomy_manager.admin.inc',
  );
  return $items;
}