You are here

public function Messaging_Message::queue in Messaging 6.4

Same name and namespace in other branches
  1. 6.3 classes/messaging_message.class.inc \Messaging_Message::queue()
  2. 7 messaging.message.inc \Messaging_Message::queue()

Queue message using the messaging store.

This should happen only once per message, we check it hasn't been queued before.

1 call to Messaging_Message::queue()
Messaging_Message::process in includes/messaging_message.class.inc
Check whether the message is to be sent / queued

File

includes/messaging_message.class.inc, line 247
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

public function queue() {
  $this->queue = 1;
  if (!$this->processed) {
    return $this
      ->process();
  }
  elseif (!$this->queued) {
    $this->queued = $this
      ->send_method()
      ->message_queue($this);
    $this
      ->send_method()
      ->message_afterqueue($this);
  }
  return $this->queued;
}