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/book.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/book.module')
-rw-r--r-- | modules/book.module | 8 |
1 files changed, 4 insertions, 4 deletions
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 .= "<h3>". t("Edit book outline for node <i>%booktitle</i>", array("%booktitle" => $node->title)) ."</h3>"; @@ -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)); |