function theme_date_text_parts_theme in Date 5
Same name and namespace in other branches
- 5.2 date/date_admin.inc \theme_date_text_parts_theme()
Display the text/select options for date parts in a table for easier readability.
1 theme call to theme_date_text_parts_theme()
File
- ./
date_admin.inc, line 134
Code
function theme_date_text_parts_theme($element) {
$rows[] = array(
t('Year'),
drupal_render($element['year'][0]),
drupal_render($element['year'][1]),
);
$rows[] = array(
t('Month'),
drupal_render($element['mon'][0]),
drupal_render($element['mon'][1]),
);
$rows[] = array(
t('Day'),
drupal_render($element['mday'][0]),
drupal_render($element['mday'][1]),
);
// Additional options will only be supported in Version 5.2 where the new use of FAPI will make this easy to do.
//$rows[] = array(t('Hours'), drupal_render($element['hours'][0]), drupal_render($element['hours'][1]));
//$rows[] = array(t('Minutes'), drupal_render($element['minutes'][0]), drupal_render($element['minutes'][1]));
//$rows[] = array(t('Seconds'), drupal_render($element['seconds'][0]), drupal_render($element['seconds'][1]));
$header = array(
t('Input Type'),
t('Select list'),
t('Text field'),
);
return theme('table', $header, $rows);
}