You are here

function theme_date_select_element in Date 8

Same name and namespace in other branches
  1. 5.2 date_api_elements.inc \theme_date_select_element()
  2. 6.2 theme/theme.inc \theme_date_select_element()
  3. 6 date_api_elements.inc \theme_date_select_element()
  4. 7.3 date_api/theme/theme.inc \theme_date_select_element()
  5. 7 date_api/theme/theme.inc \theme_date_select_element()
  6. 7.2 date_api/theme/theme.inc \theme_date_select_element()

Returns HTML for a date select input form element.

2 theme calls to theme_date_select_element()
date_timezone_element_process in date_api/date_api_elements.inc
Creates a timezone form element.
form_process_datelist in date_api/date_api_elements.inc
Expands a date element into an array of individual elements (i.e. year, month, day). All form elements are designed to have sane defaults so any or all can be omitted.

File

date_api/theme/theme.inc, line 46
Theme files for Date API.

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>';
}