From f10cca1182c1204eafd679e02a3b231f8df3c21b Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Thu, 11 Mar 2004 05:28:51 +0000
Subject: [PATCH] - Patch 6345 by Chris: the 4th argument of form() is misnamed
 and used 0 as default value

---
 includes/common.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/common.inc b/includes/common.inc
index 0264418bd79d..e50aa5caf719 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -938,11 +938,11 @@ function format_name($object) {
  * @defgroup from Form generation
  * @{
  */
-function form($form, $method = "post", $action = 0, $options = 0) {
+function form($form, $method = "post", $action = NULL, $attributes = NULL) {
   if (!$action) {
     $action = request_uri();
   }
-  return "<form action=\"$action\" method=\"$method\"". drupal_attributes($options) .">\n$form\n</form>\n";
+  return "<form action=\"$action\" method=\"$method\"". drupal_attributes($attributes) .">\n$form\n</form>\n";
 }
 
 function form_item($title, $value, $description = NULL, $id = NULL) {
-- 
GitLab