You are here

function uc_store_validate_address_field_country in Ubercart 7.3

Element validation callback for country field.

Store the current address for use when rebuilding the form.

1 string reference to 'uc_store_validate_address_field_country'
uc_store_process_address_field in uc_store/uc_store.module
Element process hook for address fields.

File

uc_store/uc_store.module, line 485
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_validate_address_field_country($element, &$form_state) {
  $address = drupal_array_get_nested_value($form_state['values'], array_slice($element['#parents'], 0, -1));
  $form_state['uc_address'] = isset($form_state['uc_address']) ? array_merge($form_state['uc_address'], $address) : $address;
}