summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-07 19:28:25 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-07 19:28:25 +0000
commit6f024382e5579bb1fd27dcbca31ed2ff34aaebbd (patch)
tree910e25bb24fefae554af93cd70e62776e85bde10 /modules
parent3e39fa864a58160acbc35cbc2ecf1adf9d42d905 (diff)
downloadbrdo-6f024382e5579bb1fd27dcbca31ed2ff34aaebbd.tar.gz
brdo-6f024382e5579bb1fd27dcbca31ed2ff34aaebbd.tar.bz2
- Made the taxonomy module use drupal_goto() to fix up the interaction behavior.
Diffstat (limited to 'modules')
-rw-r--r--modules/taxonomy.module9
-rw-r--r--modules/taxonomy/taxonomy.module9
2 files changed, 4 insertions, 14 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 22b662ba3..64175d393 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -147,6 +147,7 @@ function taxonomy_save_vocabulary($edit) {
cache_clear_all();
drupal_set_message($message);
+
return $edit;
}
@@ -919,16 +920,10 @@ function taxonomy_admin() {
}
else {
taxonomy_save_term($edit);
- if (!$edit['tid']) {
- // if INSERT show form again
- $output .= taxonomy_form_term();
- break;
- }
- // else (UPDATE or DELETE) fall through
}
+ drupal_goto('admin/taxonomy');
// fall through:
default:
- $output .= taxonomy_overview();
}
print theme('page', $output);
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 22b662ba3..64175d393 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -147,6 +147,7 @@ function taxonomy_save_vocabulary($edit) {
cache_clear_all();
drupal_set_message($message);
+
return $edit;
}
@@ -919,16 +920,10 @@ function taxonomy_admin() {
}
else {
taxonomy_save_term($edit);
- if (!$edit['tid']) {
- // if INSERT show form again
- $output .= taxonomy_form_term();
- break;
- }
- // else (UPDATE or DELETE) fall through
}
+ drupal_goto('admin/taxonomy');
// fall through:
default:
- $output .= taxonomy_overview();
}
print theme('page', $output);