You are here

function commerce_currency_settings_form_validate in Commerce Core 7

Form validate handler for the currency settings form.

1 string reference to 'commerce_currency_settings_form_validate'
commerce_currency_settings_form in includes/commerce_ui.admin.inc
Builds the currency settings form.

File

includes/commerce_ui.admin.inc, line 56
Administrative callbacks for the Commerce UI module.

Code

function commerce_currency_settings_form_validate($form, &$form_state) {

  // Ensure the default currency is always enabled.
  $default = $form_state['values']['commerce_default_currency'];
  $form_state['values']['commerce_enabled_currencies'][$default] = $default;
}