You are here

protected function Messaging_Message::do_queue in Messaging 7

Queue message using sending method

File

./messaging.message.inc, line 472
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

protected function do_queue() {
  $this
    ->set_status(self::STATUS_QUEUE);
  $result = $this
    ->send_method()
    ->message_queue($this);
  if ($result) {
    $this->queued = time();
    $this
      ->invoke_hook('queued');
  }
  return $result;
}