From 4e2c0b250e4f080d0bc3c4b587c6b2c53a0db7ac Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 1 Dec 2003 13:45:33 +0000 Subject: - 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. --- modules/taxonomy.module | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/taxonomy.module') diff --git a/modules/taxonomy.module b/modules/taxonomy.module index f56b55ac1..aebdd1709 100644 --- a/modules/taxonomy.module +++ b/modules/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(); -- cgit v1.2.3