function date_timezone_validate in Date 7.2
Same name and namespace in other branches
- 8 date_api/date_api_elements.inc \date_timezone_validate()
- 5.2 date_api_elements.inc \date_timezone_validate()
- 6.2 date_api_elements.inc \date_timezone_validate()
- 6 date_api_elements.inc \date_timezone_validate()
- 7.3 date_api/date_api_elements.inc \date_timezone_validate()
- 7 date_api/date_api_elements.inc \date_timezone_validate()
Validation for timezone input.
Move the timezone value from the nested field back to the original field.
1 string reference to 'date_timezone_validate'
- date_timezone_element_process in date_api/
date_api_elements.inc - Creates a timezone form element.
File
- date_api/
date_api_elements.inc, line 282 - Date API elements themes and validation.
Code
function date_timezone_validate($element, &$form_state) {
if (date_hidden_element($element)) {
return;
}
form_set_value($element, $element['#value']['timezone'], $form_state);
}