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/aggregator.module | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/aggregator.module') diff --git a/modules/aggregator.module b/modules/aggregator.module index e4a644a6c..bbc2676a1 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -588,18 +588,18 @@ function import_admin() { } break; case "remove": - $output = status(import_remove(import_get_feed(arg(5)))); + drupal_set_message(import_remove(import_get_feed(arg(5)))); $output .= import_view(); break; case "update": - $output = status(import_refresh(import_get_feed(arg(5)))); + drupal_set_message(import_refresh(import_get_feed(arg(5)))); $output .= import_view(); break; case "tag": $output = import_tag(); break; case t("Save attributes"): - $output = status(import_save_attributes($edit)); + drupal_set_message(import_save_attributes($edit)); $output .= import_tag(); break; case t("Delete"): @@ -607,10 +607,10 @@ function import_admin() { // fall through: case t("Submit"): if (arg(5) == "bundle") { - $output = status(import_save_bundle($edit)); + drupal_set_message(import_save_bundle($edit)); } else { - $output = status(import_save_feed($edit)); + drupal_set_message(import_save_feed($edit)); } // fall through: default: -- cgit v1.2.3