protected function Notifications_Queue::message_send in Notifications 6.4
Message sending, pass the message to Messaging back end
Parameters
$account: User account to send the message to
$message: Message array, will be converted to object
$send_method: Send method
$test: Optional, set to TRUE if doing a test run (messages not to be actually sent)
Return value
boolean TRUE if sending was successfull
1 call to Notifications_Queue::message_send()
- Notifications_Queue::process_send in includes/
notifications_queue.class.inc - Send array of messages through messaging module
File
- includes/
notifications_queue.class.inc, line 649
Class
- Notifications_Queue
- Queue management and processing
Code
protected function message_send($method, $destination, $message, $test = FALSE) {
notifications_debug('Preparing user notification for messaging', array(
'message' => $message,
'destination' => $destination,
));
$message = messaging_message_build($message);
$message->type = 'notifications';
$message->test = $test;
$this
->process_control('count', 'message');
return messaging_message_send_destination($method, $destination, $message);
}