summaryrefslogtreecommitdiff
path: root/modules/system/system.module
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/system/system.module
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/system/system.module')
-rw-r--r--modules/system/system.module10
1 files changed, 5 insertions, 5 deletions
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 {