function amazon_ses_admin_info in Amazon SES 6
1 call to amazon_ses_admin_info()
- amazon_ses_admin_settings in ./
amazon_ses.admin.inc - Administrative settings.
File
- ./
amazon_ses.admin.inc, line 172 - Administrative forms for Amazon SES module.
Code
function amazon_ses_admin_info() {
if ($addresses = amazon_ses_verified_addresses()) {
$rows = array();
if (in_array(variable_get('amazon_ses_from', ''), $addresses)) {
$rows[] = array(
'Ready to send email',
'<span style="color: #00ff00; font-weight: bold;">YES</span>',
);
}
else {
$rows[] = array(
'Ready to send email',
'<span style="color: #ff0000; font-weight: bold;">NO</span>',
);
$rows[] = array(
array(
'data' => 'You must specify an alternate Email from address below, or takes steps to verify your site\'s email address with Amazon AWS.',
'colspan' => 2,
),
);
}
$rows[] = array(
'Verified email addresses',
theme('item_list', $addresses),
);
}
return theme('table', array(), $rows) . l(t('View Amazon SES statistics'), 'admin/reports/amazon_ses');
}