function date_timezone_validate in Date 6
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()
- 7.3 date_api/date_api_elements.inc \date_timezone_validate()
- 7 date_api/date_api_elements.inc \date_timezone_validate()
- 7.2 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_api_elements in ./
date_api_elements.inc - Implementation of hook_elements().
File
- ./
date_api_elements.inc, line 471 - Date API elements themes and validation. This file is only included during the edit process to reduce memory usage.
Code
function date_timezone_validate($element, &$form_state) {
form_set_value($element, $element['#value']['timezone'], $form_state);
}