From 0cce47f15f21f59ec77de41c76cf13eb2b2f4f74 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 28 Sep 2001 16:20:55 +0000 Subject: - fixed small glitch in node_del() - fixed small glitch in comment_del() - changed the API of the form() function. The first parameter, the "action"-attribute in the
-tag has been made optional. By default, it will be set to "$REQUEST_URI". Why? Because in 98% of the cases we would do: global $REQUEST_URI; $form = form($REQUEST_URI, $form_content); while we can do: $form = form($form_content); now. Update your modules (and sorry for the inconvenience)! --- modules/book.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/book.module') diff --git a/modules/book.module b/modules/book.module index bbfde7677..f1a174ffd 100644 --- a/modules/book.module +++ b/modules/book.module @@ -122,7 +122,7 @@ function book_toc($parent = "", $indent = "", $toc = array()) { } function book_form($edit = array()) { - global $REQUEST_URI, $user; + global $user; if ($edit[title]) { $form .= book_view(new Book(node_preview($edit))); @@ -161,7 +161,7 @@ function book_form($edit = array()) { $form .= form_submit(t("Submit")); } - return form($REQUEST_URI, $form); + return form($form); } function book_save($edit) { -- cgit v1.2.3