function hook_mailhandler_auth_failed in Mailhandler 7.2
Same name and namespace in other branches
- 6.2 mailhandler.api.php \hook_mailhandler_auth_failed()
Respond to a parsed message failing authentification.
Parameters
array $message: The mail message Feeds was trying to parse.
1 function implements hook_mailhandler_auth_failed()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- mailhandler_mailhandler_auth_failed in ./
mailhandler.module - Implements hook_mailhandler_auth_failed().
1 invocation of hook_mailhandler_auth_failed()
- MailhandlerParser::parse in plugins/
feeds/ plugins/ MailhandlerParser.class.php - Implementation of FeedsParser::parse().
File
- ./
mailhandler.api.php, line 13 - Document hooks created by mailhandler.
Code
function hook_mailhandler_auth_failed($message) {
// Log the failure to Recent Log Entries.
watchdog('mailhandler', 'User could not be authenticated. Please check your Mailhandler authentication plugin settings.', array(), WATCHDOG_WARNING);
// Alert the user.
drupal_set_message(t('Oops, not able to authenticate mail.', array(), 'warning'));
}