1 date.theme.inc theme_date_select_element($variables)

Returns HTML for a date select input form element.

This is for an individual select element (e.g. Year, Month, Day). The complete element is wrapped in theme_date_select().

Related topics

File

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

Code

function theme_date_select_element($variables) {
  $element = $variables['element'];
  $parents = $element['#parents'];
  $part = array_pop($parents);
  return '<div class="date-' . $part . '">' . theme('select', $element) . '</div>';
}