You are here

function notifications_process_send in Notifications 6.3

Same name and namespace in other branches
  1. 5 notifications.cron.inc \notifications_process_send()
  2. 6 notifications.cron.inc \notifications_process_send()
  3. 6.2 notifications.cron.inc \notifications_process_send()

Send array of messages through messaging module

Parameters

$messages: Array of messages prepared for sending

$params: Parameters object

File

./notifications.cron.inc, line 508

Code

function notifications_process_send($messages, $params) {
  foreach ($messages as $message) {
    notifications_process('count', 'send');
    notifications_debug('Sending out notification', array(
      'method' => $params->send_method,
      'message' => (string) $message,
    ));
    notifications_message_send($message->account, $message);
  }
  return $messages;
}