diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-10-12 19:55:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-10-12 19:55:53 +0000 |
commit | 5f28d97a0f219b80df83b07f9be36c4aabd75c60 (patch) | |
tree | da5d3046549c24c0e41c7302823e704e893fc7a8 | |
parent | 467bc55972e7ef9453fda3f6b3b47c6e2dd66749 (diff) | |
download | brdo-5f28d97a0f219b80df83b07f9be36c4aabd75c60.tar.gz brdo-5f28d97a0f219b80df83b07f9be36c4aabd75c60.tar.bz2 |
- Patch #11271 by Ber: fixed form_radios() to generate valid XHTML code. This makes the code generated by the poll module XHTML compliant.
- Similarly, I updated form_checkboxes() to generate valid XHTML code.
-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 da0e588fc..d35a10d87 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1211,7 +1211,7 @@ function form_radios($title, $name, $value, $options, $description = NULL, $requ foreach ($options as $key => $choice) { $choices .= '<label class="option"><input type="radio" class="form-radio" name="edit['. $name .']" value="'. $key .'"'. ($key == $value ? ' checked="checked"' : ''). drupal_attributes($attributes). ' /> '. $choice .'</label><br />'; } - return theme('form_element', $title, $choices, $description, $name, $required, _form_get_error($name)); + return theme('form_element', $title, $choices, $description, NULL, $required, _form_get_error($name)); } } @@ -1273,7 +1273,7 @@ function form_checkboxes($title, $name, $values, $options, $description = NULL, foreach ($options as $key => $choice) { $choices .= '<label class="option"><input type="checkbox" class="form-checkbox" name="edit['. $name .'][]" value="'. $key .'"'. (in_array($key, $values) ? ' checked="checked"' : ''). drupal_attributes($attributes). ' /> '. $choice .'</label><br />'; } - return theme('form_element', $title, $choices, $description, $name, $required, _form_get_error($name)); + return theme('form_element', $title, $choices, $description, NULL, $required, _form_get_error($name)); } } |