function notifications_message_send in Notifications 6.3
Same name and namespace in other branches
- 5 notifications.cron.inc \notifications_message_send()
- 6 notifications.cron.inc \notifications_message_send()
- 6.2 notifications.cron.inc \notifications_message_send()
Message sending, pass the message to Messaging back end
Parameters
$account: User account to send the message to
$message: Message object
Return value
boolean TRUE if sending was successfull
1 call to notifications_message_send()
- notifications_process_send in ./
notifications.cron.inc - Send array of messages through messaging module
File
- ./
notifications.cron.inc, line 568
Code
function notifications_message_send($account, $message) {
$destination = !empty($account->name) ? $account->name : $message->destination;
notifications_debug('Preparing user notification for messaging', array(
'message' => $message,
'destination' => $destination,
));
$message
->set_user($account);
return $message
->send();
}