| Versions | |
|---|---|
| 4.7 – 6 | theme_date( |
| 7 | theme_date($variables) |
Format a date selection element.
$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 date selection boxes.
includes/
<?php
function theme_date($element) {
$output = '<div class="container-inline">' . $element['#children'] . '</div>';
return theme('form_element', $element['#title'], $output, $element['#description'], $element['#id'], $element['#required'], form_get_error($element));
}
?>