1 date.elements.inc date_element_empty($element, &$form_state)

Empty a date element.

File

core/modules/date/date.elements.inc, line 1542
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;
  form_set_value($element, $item, $form_state);
  return $item;
}