You are here

function amazon_ses_set_error_message in Amazon SES 7.2

Generate aws message.

5 calls to amazon_ses_set_error_message()
amazon_ses_form_amazon_ses_domain_dkim_enable_form_alter in ./amazon_ses.module
Implements hook_form_FORM_ID_alter().
amazon_ses_get_identity_list in includes/amazon_ses.admin.inc
Retrieve sender identities and their status.
amazon_ses_get_mail_statistics_form in includes/amazon_ses.admin.inc
Display Sending Quota and Statistics data.
amazon_ses_identity_list_update in includes/amazon_ses.admin.inc
Send request to amazon ses api to delete sender's identities.
amazon_ses_verify_sender_id_form_submit in includes/amazon_ses.admin.inc
Submit handler for amazon identity request form.

File

./amazon_ses.module, line 201
Module file for amazon_ses.

Code

function amazon_ses_set_error_message($action, $result) {
  $message = t('Request to <strong>!action</strong> action of Amazon
      SES API call has failed, due to !error_code. Please check settings.', array(
    '!error_code' => $result['errorCode'],
    '!action' => $action,
  ));
  drupal_set_message($message, 'error');
}