diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-12-01 13:45:33 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-12-01 13:45:33 +0000 |
commit | 4e2c0b250e4f080d0bc3c4b587c6b2c53a0db7ac (patch) | |
tree | f057d6143f516349ba72ca67b4e2f4fc736cc95e /modules/block.module | |
parent | 4a5dc7e43acac8f2c9f3844035055c609da40370 (diff) | |
download | brdo-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/block.module')
-rw-r--r-- | modules/block.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/block.module b/modules/block.module index 9d663824a..130f4e325 100644 --- a/modules/block.module +++ b/modules/block.module @@ -295,17 +295,17 @@ function block_admin() { $output = block_box_form(block_box_get(arg(4))); break; case "delete": - $output = status(block_box_delete(arg(4))); + drupal_set_message(block_box_delete(arg(4))); cache_clear_all(); $output .= block_admin_display(); break; case t("Save block"): - $output = status(block_box_save($edit)); + drupal_set_message(block_box_save($edit)); cache_clear_all(); $output .= block_admin_display(); break; case t("Save blocks"): - $output = status(block_admin_save($edit)); + drupal_set_message(block_admin_save($edit)); cache_clear_all(); // fall through default: |