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/meta.module | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/meta.module') diff --git a/modules/meta.module b/modules/meta.module index c80c1e462..682069f9f 100644 --- a/modules/meta.module +++ b/modules/meta.module @@ -60,7 +60,6 @@ function meta_get_tag($tid) { } function meta_form_collection($edit = array()) { - global $REQUEST_URI; $form .= form_textfield("Collection name", "name", $edit[name], 50, 64, "Required. The name for this group or collection of meta-tags. Example: 'Software'."); $form .= form_textfield("Types", "types", $edit[types], 50, 64, "Required. A comma-seperated list of node types you want to associate this collection with. Example: 'story, book'."); @@ -71,11 +70,10 @@ function meta_form_collection($edit = array()) { $form .= form_hidden("cid", $edit[cid]); } - return form($REQUEST_URI, $form); + return form($form); } function meta_form_tag($edit = array()) { - global $REQUEST_URI; $form .= form_textfield("Meta-tag name", "name", $edit[name], 50, 64, "Required. The name for this meta-tag. Example: 'Apache'."); $form .= form_textfield("Attributes", "attributes", $edit[attributes], 50, 64, "Required. A comma-seperated list of keywords you want to associate this meta-tag with. Example: 'Computers, Software, Webservers'."); @@ -87,7 +85,7 @@ function meta_form_tag($edit = array()) { $form .= form_hidden("tid", $edit[tid]); } - return form($REQUEST_URI, $form); + return form($form); } function meta_save_collection($edit) { @@ -121,7 +119,7 @@ function meta_preview() { $output .= meta_form($name) ."
"; } } - return form("", $output); + return form($output); } function meta_overview() { -- cgit v1.2.3