You are here

function tzfield_autocomplete_validate in Time Zone Field 6

Validate an autocomplete element. Remove the wrapper layer and set the right element's value.

1 string reference to 'tzfield_autocomplete_validate'
tzfield_autocomplete_process in ./tzfield.module
Process an individual autocomplete element.

File

./tzfield.module, line 322
Defines a field type for storing timezones.

Code

function tzfield_autocomplete_validate($element, &$form_state) {
  $field_key = $element['#columns'][0];
  form_set_value($element, $element['#value'][$field_key], $form_state);
}