From 81b21bc068d2a3d074bb78f51778b4edc91e55a2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Mon, 29 Dec 2003 11:16:45 +0000 Subject: [PATCH] - Removed the ID from radio buttons: we'll need to rethink this a bit. --- includes/common.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/common.inc b/includes/common.inc index 885781947934..035f04ab1654 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -730,7 +730,7 @@ function form_group($legend, $group, $description = NULL) { } function form_radio($title, $name, $value = 1, $checked = 0, $description = NULL, $attributes = NULL) { - return theme("form_element", 0, "<input type=\"radio\" class=\"form-radio\" name=\"edit[$name]\" id=\"$name\" value=\"$value\"". ($checked ? " checked=\"checked\"" : "") . drupal_attributes($attributes) ." /> $title", $description, $name); + return theme("form_element", 0, "<input type=\"radio\" class=\"form-radio\" name=\"edit[$name]\" value=\"$value\"". ($checked ? " checked=\"checked\"" : "") . drupal_attributes($attributes) ." /> $title", $description); } function form_radios($title, $name, $value, $options, $description = NULL) { @@ -738,12 +738,12 @@ function form_radios($title, $name, $value, $options, $description = NULL) { foreach ($options as $key => $choice) { $choices .= "<input type=\"radio\" class=\"form-radio\" name=\"edit[$name]\" value=\"$key\"". ($key == $value ? " checked=\"checked\"" : "") ." /> $choice<br />"; } - return theme("form_element", $title, $choices, $description, $name); + return theme("form_element", $title, $choices, $description); } } function form_checkbox($title, $name, $value = 1, $checked = 0, $description = NULL, $attributes = NULL) { - return form_hidden($name, 0) . theme("form_element", NULL, "<input type=\"checkbox\" class=\"form-checkbox\" name=\"edit[$name]\" value=\"". $value ."\"". ($checked ? " checked=\"checked\"" : "") . drupal_attributes($attributes) ." /> $title", $description, $name); + return form_hidden($name, 0) . theme("form_element", NULL, "<input type=\"checkbox\" class=\"form-checkbox\" name=\"edit[$name]\" value=\"". $value ."\"". ($checked ? " checked=\"checked\"" : "") . drupal_attributes($attributes) ." /> $title", $description); } function form_textfield($title, $name, $value, $size, $maxlength, $description = NULL, $attributes = NULL) { -- GitLab