summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-12-01 13:45:33 +0000
committerDries Buytaert <dries@buytaert.net>2003-12-01 13:45:33 +0000
commit4e2c0b250e4f080d0bc3c4b587c6b2c53a0db7ac (patch)
treef057d6143f516349ba72ca67b4e2f4fc736cc95e /modules/taxonomy
parent4a5dc7e43acac8f2c9f3844035055c609da40370 (diff)
downloadbrdo-4e2c0b250e4f080d0bc3c4b587c6b2c53a0db7ac.tar.gz
brdo-4e2c0b250e4f080d0bc3c4b587c6b2c53a0db7ac.tar.bz2
- Introduced a drupal_set_message() and drupal_get_message() function.
Contributed themes and modules need to be updated: - modules: status() is no more; use drupal_set_message() instead. - themes: use drupal_get_message() to check for status messages and visualize them.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.module10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index f56b55ac1..aebdd1709 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -112,7 +112,8 @@ function taxonomy_save_vocabulary($edit) {
cache_clear_all();
- return $message;
+ drupal_set_message($message);
+ return $edit;
}
function taxonomy_del_vocabulary($vid) {
@@ -239,7 +240,8 @@ function taxonomy_save_term($edit) {
cache_clear_all();
- return $message;
+ drupal_set_message($status);
+ return $edit;
}
function taxonomy_del_term($tid) {
@@ -775,10 +777,10 @@ function taxonomy_admin() {
}
case t("Submit"):
if (arg(3) == "vocabulary") {
- $output .= status(taxonomy_save_vocabulary($edit));
+ taxonomy_save_vocabulary($edit);
}
else {
- $output .= status(taxonomy_save_term($edit));
+ taxonomy_save_term($edit);
if (!$edit["tid"]) {
// if INSERT show form again
$output .= taxonomy_form_term();