function messaging_message_send_out in Messaging 6
Same name and namespace in other branches
- 5 messaging.module \messaging_message_send_out()
- 6.2 messaging.module \messaging_message_send_out()
- 6.3 messaging.module \messaging_message_send_out()
Send for real, finally invoking method's callback function
This sends messages one by one, so the callback function only need to support a single destination Specific parameters for this message group are processed here too
Parameters
$destination: Single destination, may be email, user account, etc...
$message: Message object
$method: Sending method
Return value
boolean Message successfully sent
1 call to messaging_message_send_out()
- messaging_message_multisend in ./
messaging.module - Message default callback: send iterating over all destinations
File
- ./
messaging.module, line 386
Code
function messaging_message_send_out($destination, $message, $method) {
if ($callback = messaging_method_info($method, 'send callback')) {
// Check for specific parameters for this sending method
$group = messaging_method_info($method, 'group');
$params = !empty($message->params[$group]) ? $message->params[$group] : array();
return _messaging_callback_invoke($callback, $destination, $message, $params);
}
else {
watchdog('messaging', 'Message could not be delivered for method %method', array(
'%method' => $method,
), WATCHDOG_ERROR);
return FALSE;
}
}