You are here

function date_element_empty in Date 7.3

Same name and namespace in other branches
  1. 8 date_elements.inc \date_element_empty()
  2. 5.2 date/date_elements.inc \date_element_empty()
  3. 6.2 date/date_elements.inc \date_element_empty()
  4. 7 date_elements.inc \date_element_empty()
  5. 7.2 date_elements.inc \date_element_empty()

Empty a date element.

1 call to date_element_empty()
date_combo_validate in ./date_elements.inc
Validate and update a combo element.

File

./date_elements.inc, line 464
Date forms and form themes and validation.

Code

function date_element_empty($element, &$form_state) {
  $item = array();
  $item['value'] = NULL;
  $item['value2'] = NULL;
  $item['timezone'] = NULL;
  $item['offset'] = NULL;
  $item['offset2'] = NULL;
  $item['rrule'] = NULL;
  form_set_value($element, $item, $form_state);
  return $item;
}