function tzfield_select_validate in Time Zone Field 6
Afterbuild adjustment of the element. Remove the wrapper layer and set the right element's value.
File
- ./
tzfield.module, line 313 - Defines a field type for storing timezones.
Code
function tzfield_select_validate($element, &$form_state) {
$field_key = $element['#columns'][0];
form_set_value($element, $element['#value'][$field_key], $form_state);
}