function notifications_message_send in Notifications 6.2
Same name and namespace in other branches
- 5 notifications.cron.inc \notifications_message_send()
- 6 notifications.cron.inc \notifications_message_send()
- 6.3 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 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_message_send()
- notifications_process_send in ./
notifications.cron.inc - Send array of messages through messaging module
File
- ./
notifications.cron.inc, line 596
Code
function notifications_message_send($account, $message, $send_method, $test = FALSE) {
notifications_debug('Preparing user notification for messaging', array(
'message' => $message,
'account' => $account,
));
$message = (object) $message;
$message->type = 'notifications';
$message->test = $test;
notifications_process('count', 'message');
messaging_message_send_user($account, $message, $send_method);
}