You are here

function hook_mailhandler in Mailhandler 6

Allow override node/comment elements before submitting the entry.

Modules may implement this hook if they want to alter or process the node or comment being saved. This hook is executed while logged in as the author user so avoid to handle administrative tasks as the user may not have enough permissions to do.

A module can completely process the node. To avoid other modules to act on the new created entry, it must return the node object.

Parameters

$node: A node/comment object completely processed by the parser.

$result: Unknown: Imap stream?

$number: function listhandler_mailhandler($node, $result, $msg_number, $header, $mailbox) { Unknown

$header: Current email message header

$mailbox: Array containing the mailbox information.

Return value

return the $node object if the module process the node, preventing other module's hook from being called or nothing.

1 invocation of hook_mailhandler()
mailhandler_node_process_message in ./mailhandler.module

File

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

Code

function hook_mailhandler($node, $result, $number, $header, $mailbox) {
}