function mailhandler_mailhandler_authenticate_info in Mailhandler 6
Same name and namespace in other branches
- 7 mailhandler.module \mailhandler_mailhandler_authenticate_info()
Implementation of hook_mailhandler_authenticate_info()
File
- ./
mailhandler.module, line 1121 - Mailhandler module code.
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;
}