diff options
-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) { |