You are here

function theme_date_textfield_element in Date 7.2

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

Returns HTML for a date textfield input form element.

File

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

Code

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