#47544, Checkboxes, radios, and improper use of LABELs., patch by Zen

4.7.x
Gerhard Killesreiter 2006-04-21 06:43:03 +00:00
parent 8e4524c0d8
commit 0d0a939ab1
1 changed files with 2 additions and 2 deletions

View File

@ -693,7 +693,7 @@ function theme_radio($element) {
*/
function theme_radios($element) {
if ($element['#title'] || $element['#description']) {
return theme('form_element', $element['#title'], $element['#children'], $element['#description'], $element['#id'], $element['#required'], form_get_error($element));
return theme('form_element', $element['#title'], $element['#children'], $element['#description'], NULL, $element['#required'], form_get_error($element));
}
else {
return $element['#children'];
@ -902,7 +902,7 @@ function theme_checkbox($element) {
*/
function theme_checkboxes($element) {
if ($element['#title'] || $element['#description']) {
return theme('form_element', $element['#title'], $element['#children'], $element['#description'], $element['#id'], $element['#required'], form_get_error($element));
return theme('form_element', $element['#title'], $element['#children'], $element['#description'], NULL, $element['#required'], form_get_error($element));
}
else {
return $element['#children'];