You are here

function example_authentication_method in Mailhandler 6

Example of custom authentication method.

The purpose of the authentication method is to fill authorship attributes in the node object. This function must be declared as authentication method with hook_mailhandler_authenticate_info(), as the 'callback' parameter for the method.

Parameters

$node: Object a node object

$header: Object of message header information

$origbody: String message body text

$mailbox: Array of mailbox configuration

Return value

The node object with authorship attributes filled, usually $node->uid and $node->name attributes.

File

./mailhandler.api.php, line 113
Hooks provided by the Mailhandler module.

Code

function example_authentication_method($node, $header, $origbody, $mailbox) {
}