You are here

mailhandler.api.php in Mailhandler 6.2

Same filename and directory in other branches
  1. 6 mailhandler.api.php
  2. 7.2 mailhandler.api.php

Document hooks created by mailhandler.

File

mailhandler.api.php
View source
<?php

/**
 * @file
 * Document hooks created by mailhandler.
 */

/**
 * Respond to a parsed message failing authentification.
 *
 * @param array $message
 *   The mail message Feeds was trying to parse.
 */
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'));
}

Functions

Namesort descending Description
hook_mailhandler_auth_failed Respond to a parsed message failing authentification.