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/book.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/book.module') diff --git a/modules/book.module b/modules/book.module index 0f36bc357..d27fe6054 100644 --- a/modules/book.module +++ b/modules/book.module @@ -207,17 +207,17 @@ function book_node_link($node = 0) { if ($op == t("Add to book outline")) { db_query("INSERT INTO {book} (nid, parent, weight) VALUES (%d, %d, %d)", $node->nid, $edit["parent"], $edit["weight"]); - $output .= status(t("added the node to the book.")); + drupal_set_message(t("added the node to the book.")); } if ($op == t("Update book outline")) { db_query("UPDATE {book} SET parent = %d, weight = %d WHERE nid = %d", $edit["parent"], $edit["weight"], $node->nid); - $output .= status(t("updated the book outline.")); + drupal_set_message(t("updated the book outline.")); } if ($op == t("Remove from book outline")) { db_query("DELETE FROM {book} WHERE nid = %d", $node->nid); - $output .= status(t("removed the node form the book.")); + drupal_set_message(t("removed the node form the book.")); } $output .= "

". t("Edit book outline for node %booktitle", array("%booktitle" => $node->title)) ."

"; @@ -834,7 +834,7 @@ function book_admin() { $output = book_admin_orphan(); break; case t("Save book pages"): - $output = status(book_admin_save(arg(3), $edit)); + drupal_set_message(book_admin_save(arg(3), $edit)); // fall through: default: $output .= book_admin_view(arg(3)); -- cgit v1.2.3