You are here

function currency_form_currency_locale_validate in Currency 7.2

Implements form validate callback for a currency_locale element.

1 string reference to 'currency_form_currency_locale_validate'
currency_element_info in currency/currency.module
Implements hook_element_info().

File

currency/currency.module, line 451
Provides currency information and allows users to add custom currencies.

Code

function currency_form_currency_locale_validate(array $element, array &$form_state) {
  $locale = $element['locale']['language_code']['#value'] . '_' . $element['locale']['country_code']['#value'];
  form_set_value($element, $locale, $form_state);
}