You are here

function date_timezone_validate in Date 7

Same name and namespace in other branches
  1. 8 date_api/date_api_elements.inc \date_timezone_validate()
  2. 5.2 date_api_elements.inc \date_timezone_validate()
  3. 6.2 date_api_elements.inc \date_timezone_validate()
  4. 6 date_api_elements.inc \date_timezone_validate()
  5. 7.3 date_api/date_api_elements.inc \date_timezone_validate()
  6. 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_timezone_element_process in date_api/date_api_elements.inc
Create a timezone form element.

File

date_api/date_api_elements.inc, line 181
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);
}