From 5b3f42372fcd772063aadbb9b262e943a2163f3b Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Tue, 9 May 2006 14:16:49 +0000
Subject: [PATCH] - Patch #62554 by webchick: removed some cruft.

---
 modules/taxonomy.module          | 11 ++---------
 modules/taxonomy/taxonomy.module | 11 ++---------
 2 files changed, 4 insertions(+), 18 deletions(-)

diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 0f6b310eb3ad..29ccd3ae0aed 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -107,8 +107,8 @@ function taxonomy_menu($may_cache) {
 
       $items[] = array('path' => 'admin/taxonomy/' . arg(2) . '/add/term',
         'title' => t('add term'),
-        'callback' => 'taxonomy_admin_term_add',
-        'callback arguments' => array(arg(2)),
+        'callback' => 'taxonomy_form_term',
+        'callback arguments' => array(array('vid' => arg(2))),
         'access' => user_access('administer taxonomy'),
         'type' => MENU_LOCAL_TASK);
     }
@@ -1298,13 +1298,6 @@ function taxonomy_admin_term_edit($tid = NULL) {
   return taxonomy_form_term($term);
 }
 
-/**
- * Page to add a term to a specific vocabulary.
- */
-function taxonomy_admin_term_add($vid = NULL) {
-  return taxonomy_form_term(array('vid' => arg(2)));
-}
-
 /**
  * Provides category information for rss feeds
  */
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 0f6b310eb3ad..29ccd3ae0aed 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -107,8 +107,8 @@ function taxonomy_menu($may_cache) {
 
       $items[] = array('path' => 'admin/taxonomy/' . arg(2) . '/add/term',
         'title' => t('add term'),
-        'callback' => 'taxonomy_admin_term_add',
-        'callback arguments' => array(arg(2)),
+        'callback' => 'taxonomy_form_term',
+        'callback arguments' => array(array('vid' => arg(2))),
         'access' => user_access('administer taxonomy'),
         'type' => MENU_LOCAL_TASK);
     }
@@ -1298,13 +1298,6 @@ function taxonomy_admin_term_edit($tid = NULL) {
   return taxonomy_form_term($term);
 }
 
-/**
- * Page to add a term to a specific vocabulary.
- */
-function taxonomy_admin_term_add($vid = NULL) {
-  return taxonomy_form_term(array('vid' => arg(2)));
-}
-
 /**
  * Provides category information for rss feeds
  */
-- 
GitLab