You are here

function date_element_empty in Date 5.2

Same name and namespace in other branches
  1. 8 date_elements.inc \date_element_empty()
  2. 6.2 date/date_elements.inc \date_element_empty()
  3. 7.3 date_elements.inc \date_element_empty()
  4. 7 date_elements.inc \date_element_empty()
  5. 7.2 date_elements.inc \date_element_empty()
1 call to date_element_empty()
date_combo_validate in date/date_elements.inc
Validate and update a combo element. Don't try this if there were errors before reaching this point.

File

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

Code

function date_element_empty($element) {
  $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);
  return $item;
}