| Versions | |
|---|---|
| 4.7 – 6 | theme_radios( |
| 7 | theme_radios($variables) |
Format a set of radio buttons.
$element An associative array containing the properties of the element. Properties used: title, value, options, description, required and attributes.
A themed HTML string representing the radio button set.
includes/
<?php
function theme_radios($element) {
if ($element['#title'] || $element['#description']) {
return theme('form_element', $element['#title'], $element['#children'], $element['#description'], NULL, $element['#required'], form_get_error($element));
}
else {
return $element['#children'];
}
}
?>