You are here

function mailhandler_mailhandler_authenticate_info in Mailhandler 7

Same name and namespace in other branches
  1. 6 mailhandler.module \mailhandler_mailhandler_authenticate_info()

Implementation of hook_mailhandler_authenticate_info()

File

./mailhandler.module, line 621

Code

function mailhandler_mailhandler_authenticate_info() {
  $info = array(
    'mailhandler_default' => array(
      'title' => 'Mailhandler Default',
      'description' => 'Checks whether the sender matches a valid user in the database',
      'callback' => 'mailhandler_authenticate_default',
      'module' => 'mailhandler',
      'extension' => NULL,
      // as in $type in module_load_include
      'basename' => NULL,
    ),
  );
  if (module_exists('tokenauth')) {
    $info += array(
      'mailhandler_tokenauth' => array(
        'title' => 'Mailhandler Tokenauth',
        'description' => 'Authenticate messages based on users token from Tokenauth module',
        'callback' => 'mailhandler_authenticate_tokenauth',
        'module' => 'mailhandler',
        'extension' => NULL,
        'basename' => NULL,
      ),
    );
  }
  return $info;
}