| Versionen | |
|---|---|
| drupal6 – drupal7 | theme_checkboxes($element) |
Format a set of checkboxes.
$element An associative array containing the properties of the element.
A themed HTML string representing the checkbox set.
includes/
<?php
function theme_checkboxes($element) {
$class = 'form-checkboxes';
if (isset($element['#attributes']['class'])) {
$class .= ' ' . $element['#attributes']['class'];
}
$element['#children'] = '<div class="' . $class . '">' . (!empty($element['#children']) ? $element['#children'] : '') . '</div>';
return $element['#children'];
}
?>
Kommentare
Kommentar hinzufügen