function _date_elements in Date 6
Same name and namespace in other branches
- 5.2 date/date_elements.inc \_date_elements()
- 6.2 date/date_elements.inc \_date_elements()
Implementation of hook_elements().
date_combo will create a 'from' and optional 'to' date, along with an optional 'timezone' column for date-specific timezones. Each 'from' and 'to' date will be constructed from date_select or date_text.
1 call to _date_elements()
- date_elements in date/
date.module - Implementation of hook_elements().
File
- date/
date_elements.inc, line 234 - Date forms and form themes and validation.
Code
function _date_elements() {
$type = array();
$type['date_combo'] = array(
'#input' => TRUE,
'#delta' => 0,
'#columns' => array(
'value',
'value2',
'timezone',
'offset',
'offset2',
),
'#process' => array(
'date_combo_process',
),
'#element_validate' => array(
'date_combo_validate',
),
);
return $type;
}