You are here

function uc_store_store_settings_form_validate in Ubercart 6.2

Validation handler for uc_store_store_settings_form().

Validates store e-mail address

1 string reference to 'uc_store_store_settings_form_validate'
uc_store_store_settings_form in uc_store/uc_store.admin.inc
Displays the form for store settings.

File

uc_store/uc_store.admin.inc, line 667
Store administration menu items.

Code

function uc_store_store_settings_form_validate($form, &$form_state) {
  $mail = trim($form_state['values']['uc_store_email']);
  if (!valid_email_address($mail)) {
    form_set_error('uc_store_email', t('The e-mail address %mail is not valid.', array(
      '%mail' => $mail,
    )));
  }
}