From 2bc18b615540ca4ba41cf79a27fd900835bea989 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 8 Nov 2009 11:19:02 +0000 Subject: #553326 by sun: Provide consistency to the way field UI is presented for taxonomy. --- modules/taxonomy/taxonomy.module | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 6cc346368..200f39525 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -234,30 +234,29 @@ function taxonomy_menu() { ); $items['admin/structure/taxonomy/%taxonomy_vocabulary'] = array( - 'title' => 'Vocabulary', // this is replaced by callback - 'page callback' => 'drupal_get_form', - 'page arguments' => array('taxonomy_form_vocabulary', 3), 'title callback' => 'taxonomy_admin_vocabulary_title_callback', 'title arguments' => array(3), + '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/structure/taxonomy/%taxonomy_vocabulary/edit'] = array( - 'title' => 'Edit vocabulary', + $items['admin/structure/taxonomy/%taxonomy_vocabulary/list'] = array( + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -20, ); - $items['admin/structure/taxonomy/%taxonomy_vocabulary/list'] = array( - 'title' => 'List terms', + $items['admin/structure/taxonomy/%taxonomy_vocabulary/edit'] = array( + 'title' => 'Edit', 'page callback' => 'drupal_get_form', - 'page arguments' => array('taxonomy_overview_terms', 3), + '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/list/add'] = array( + + $items['admin/structure/taxonomy/%taxonomy_vocabulary/add'] = array( 'title' => 'Add term', 'page callback' => 'drupal_get_form', 'page arguments' => array('taxonomy_form_term', array(), 3), @@ -888,7 +887,7 @@ function taxonomy_help($path, $arg) { case 'admin/structure/taxonomy': $output = '

' . t('Configure the vocabularies and terms for your site.') . '

'; return $output; - case 'admin/structure/taxonomy/%/list': + case 'admin/structure/taxonomy/%': $vocabulary = taxonomy_vocabulary_load($arg[3]); switch ($vocabulary->hierarchy) { case 0: -- cgit v1.2.3