function _date_elements in Date 5.2
Same name and namespace in other branches
- 6.2 date/date_elements.inc \_date_elements()
- 6 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 267 - Date forms and form themes and validation.
Code
function _date_elements() {
$type['date_combo'] = array(
'#input' => TRUE,
'#tree' => TRUE,
'#field' => array(),
'#delta' => 0,
'#columns' => array(
'value',
'value2',
'timezone',
'offset',
'offset2',
),
'#process' => array(
'date_combo_process' => array(),
),
'#validate' => array(
'date_combo_validate' => array(),
),
);
return $type;
}