1 date.theme.inc theme_date_select($variables)

Returns HTML for a "date_select" element, including all child elements.

Related topics

File

core/modules/date/date.theme.inc, line 42
Theme and preprocess functions for output by Date module.

Code

function theme_date_select($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);
}