1 date.elements.inc date_timezone_element_value_callback($element, $input = FALSE, &$form_state = array())

Element value callback for date_timezone element.

File

core/modules/date/date.elements.inc, line 253
Date forms and form themes and validation.

Code

function date_timezone_element_value_callback($element, $input = FALSE, &$form_state = array()) {
  $return = '';
  if ($input !== FALSE) {
    $return = $input;
  }
  elseif (!empty($element['#default_value'])) {
    $return = array('timezone' => $element['#default_value']);
  }
  return $return;
}