You are here

function date_timezone_validate in Date 5.2

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

File

./date_api_elements.inc, line 550
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_set_value($element, $element['#value']['timezone']);
}