You are here

function Messaging_Message::process in Messaging 6.3

Same name and namespace in other branches
  1. 6.4 includes/messaging_message.class.inc \Messaging_Message::process()
  2. 7 messaging.message.inc \Messaging_Message::process()

Process message to the end (queue, send, log

1 call to Messaging_Message::process()
Messaging_Message::send in classes/messaging_message.class.inc
Send message using method, destination

File

classes/messaging_message.class.inc, line 154
Drupal Messaging Framework - Default class file

Class

Messaging_Message
Message class

Code

function process() {
  $this->result = FALSE;

  // We try more than once if message is redirected
  do {
    $this->process = TRUE;
    $this->redirect = FALSE;
    $this->retry = FALSE;
    $this
      ->prepare();
    if ($this->queue) {
      $this
        ->queue();
    }
    elseif ($this->process && !$this->redirect) {
      $this
        ->post();
    }
  } while ($this->redirect || $this->retry);
  return $this->result;
}