You are here

function amazon_ses_admin_new_address_submit in Amazon SES 6

Submission for the administrative settings form - new address.

Parameters

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

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

1 string reference to 'amazon_ses_admin_new_address_submit'
amazon_ses_admin_settings in ./amazon_ses.admin.inc
Administrative settings.

File

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

Code

function amazon_ses_admin_new_address_submit($form, &$form_state) {
  $address = $form_state['values']['new_address'];
  if ($address) {
    $amazon_ses = new AmazonSES();
    $new_address = $amazon_ses
      ->verify_email_address($address);
    if ($new_address
      ->isOK()) {
      drupal_set_message(t('The address %address has been verified. Please check your email for a confirmation message from Amazon.', array(
        '%address' => $address,
      )));
    }
  }
}