1 form.inc theme_html_datetime($variables)

Returns html5 markup for a combined date and time form element.

Related topics

File

core/includes/form.inc, line 3227
Functions for form and batch generation and processing.

Code

function theme_html_datetime($variables) {
  $element = $variables['element'];
  $attributes = array();
  if (isset($element['#id'])) {
    $attributes['id'] = $element['#id'];
  }
  if (!empty($element['#attributes']['class'])) {
    $attributes['class'] = (array) $element['#attributes']['class'];
  }
  $attributes['class'][] = 'container-inline';
  return '<div' . backdrop_attributes($attributes) . '>' . backdrop_render_children($element) . '</div>';
}