1 date.theme.inc | theme_date_text($variables) |
Returns HTML for a date text element.
Related topics
File
- core/
modules/ date/ date.theme.inc, line 29 - Theme and preprocess functions for output by Date module.
Code
function theme_date_text($variables) {
$element = $variables['element'];
// Wrap in a div with an ID for #states.
if (isset($element['#children'])) {
$element['#children'] = '<div id="' . $element['#id'] . '" class="container-inline-date">' . $element['#children'] . '</div>';
}
return theme('form_element', $element);
}