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/system/system.module | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.module b/modules/system/system.module index 38c858c99..4ed775197 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -206,7 +206,7 @@ function system_save_settings($edit = array()) { } cache_clear_all(); - return t("the configuration options have been saved."); + drupal_set_message(t("the configuration options have been saved.")); } function system_reset_default($edit = array()) { @@ -216,7 +216,7 @@ function system_reset_default($edit = array()) { cache_clear_all(); - return t("the configuration options have been reset to their default values."); + drupal_set_message(t("the configuration options have been reset to their default values.")); } function system_view($type, $arg = "") { @@ -348,14 +348,14 @@ function system_admin() { if (user_access("administer site configuration")) { if ($op == t("Reset to defaults")) { - $output = status(system_reset_default($edit)); + system_reset_default($edit); } if ($op == t("Save configuration")) { - $output = status(system_save_settings($edit)); + system_save_settings($edit); } - $output .= system_view(arg(2), arg(3)); + $output = system_view(arg(2), arg(3)); print theme("page", $output); } else { -- cgit v1.2.3