function theme_date_combo in Date 6
Same name and namespace in other branches
- 8 date.theme \theme_date_combo()
- 5.2 date/date_elements.inc \theme_date_combo()
- 6.2 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()
Theme from/to date combination on form.
File
- date/
date_elements.inc, line 443 - Date forms and form themes and validation.
Code
function theme_date_combo($element) {
$fields = content_fields();
$field = $fields[$element['#field_name']];
if (!$field['todate']) {
return $element['#children'];
}
// Group from/to items together in fieldset.
$fieldset = array(
'#title' => $field['widget']['label'] . ' ' . ($element['#delta'] > 0 ? intval($element['#delta'] + 1) : ''),
'#value' => $element['#children'],
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'#description' => $element['#fieldset_description'],
'#attributes' => array(),
);
return theme('fieldset', $fieldset);
}