function date_element_empty in Date 8
Same name and namespace in other branches
- 5.2 date/date_elements.inc \date_element_empty()
- 6.2 date/date_elements.inc \date_element_empty()
- 7.3 date_elements.inc \date_element_empty()
- 7 date_elements.inc \date_element_empty()
- 7.2 date_elements.inc \date_element_empty()
1 call to date_element_empty()
- date_combo_validate in ./
date_elements.inc - Validate and update a combo element. Don't try this if there were errors before reaching this point.
File
- ./
date_elements.inc, line 236 - Date forms and form themes and validation.
Code
function date_element_empty($element, $item, &$form_state) {
$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;
}