You are here

function amazon_ses_admin_settings_validate in Amazon SES 6

Validataion for the administrative settings form.

Parameters

form: An associative array containing the structure of the form.

form_state: A keyed array containing the current state of the form.

File

./amazon_ses.admin.inc, line 112
Administrative forms for Amazon SES module.

Code

function amazon_ses_admin_settings_validate($form, &$form_state) {
  if ($form_state['values']['op'] == t('Submit') && !valid_email_address($form_state['values']['new_address'])) {
    form_set_error('new_address', t('This email address is not valid.'));
  }
}