Commit f10cca11 authored by Dries's avatar Dries

- Patch 6345 by Chris: the 4th argument of form() is misnamed and used 0 as default value

parent 3ab169fc
...@@ -938,11 +938,11 @@ function format_name($object) { ...@@ -938,11 +938,11 @@ function format_name($object) {
* @defgroup from Form generation * @defgroup from Form generation
* @{ * @{
*/ */
function form($form, $method = "post", $action = 0, $options = 0) { function form($form, $method = "post", $action = NULL, $attributes = NULL) {
if (!$action) { if (!$action) {
$action = request_uri(); $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) { function form_item($title, $value, $description = NULL, $id = NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment