You are here

function _date_elements in Date 6.2

Same name and namespace in other branches
  1. 5.2 date/date_elements.inc \_date_elements()
  2. 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 237
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;
}