You are here

protected static function Messaging_Store::queue_process_message in Messaging 6.4

Process single messag from queue

1 call to Messaging_Store::queue_process_message()
Messaging_Store::queue_process_step in includes/messaging_store.class.inc
Retrieve and send queued messages

File

includes/messaging_store.class.inc, line 141
Database storage for the messaging framework

Class

Messaging_Store
Default storage and queueing system for Messaging

Code

protected static function queue_process_message($message) {

  // Do not queue again but send out
  $message->queue = 0;
  if (!empty($message->destinations)) {
    $success = $message
      ->send_multiple();
  }
  else {
    $success = $message
      ->send();
  }
  return $success;
}