diff options
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 701645957..f58f6db29 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1148,15 +1148,9 @@ function taxonomy_admin() { // Special block for our "add term" menu localtask. this covers // the use of the "add term" LOCAL_TASK on a "view terms" page. - if (is_numeric(arg(2)) && arg(3) == 'add' && arg(4) == 'term') { - if ($op != t('Submit')) { - $output = taxonomy_form_term(array('vid' => arg(2))); - return $output; - } - else { - taxonomy_save_term($edit); - drupal_goto('admin/taxonomy'); - } + if (is_numeric(arg(2)) && arg(3) == 'add' && arg(4) == 'term' && $op != t('Submit')) { + $output = taxonomy_form_term(array('vid' => arg(2))); + return $output; } switch ($op) { |