1 date.theme.inc theme_date_timezone($variables)

Returns HTML for a date timezone element.

Related topics

File

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

Code

function theme_date_timezone($variables) {
  $element = $variables['element'];
  $attributes = $element['#attributes'];

  // 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 '<div ' . backdrop_attributes($attributes) . '>' . theme('form_element', $element) . '</div>';
}