diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-03-11 05:28:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-03-11 05:28:51 +0000 |
commit | f10cca1182c1204eafd679e02a3b231f8df3c21b (patch) | |
tree | 0e478a6afd72c8d8c271e045975d517ad4800b68 | |
parent | 3ab169fc8b803424f90f76eda3979cab7fadba44 (diff) | |
download | brdo-f10cca1182c1204eafd679e02a3b231f8df3c21b.tar.gz brdo-f10cca1182c1204eafd679e02a3b231f8df3c21b.tar.bz2 |
- Patch 6345 by Chris: the 4th argument of form() is misnamed and used 0 as default value
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index 0264418bd..e50aa5caf 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) { |