function theme_date_combo in Date 8
Same name and namespace in other branches
- 5.2 date/date_elements.inc \theme_date_combo()
- 6.2 date/date_elements.inc \theme_date_combo()
- 6 date/date_elements.inc \theme_date_combo()
- 7.3 date.theme \theme_date_combo()
- 7 date.theme \theme_date_combo()
- 7.2 date.theme \theme_date_combo()
Returns HTML for a start/end date combination on form.
File
- ./
date.theme, line 318 - Theme functions.
Code
function theme_date_combo($variables) {
$element = $variables['element'];
$field = field_info_field($element['#field_name']);
$instance = field_info_instance($element['#entity_type'], $element['#field_name'], $element['#bundle']);
// Group start/end items together in fieldset.
$fieldset = array(
'#title' => t($element['#title']) . ' ' . ($element['#delta'] > 0 ? intval($element['#delta'] + 1) : ''),
'#value' => '',
'#description' => !empty($element['#fieldset_description']) ? $element['#fieldset_description'] : '',
'#attributes' => array(),
'#children' => $element['#children'],
);
return theme('fieldset', array(
'element' => $fieldset,
));
}