You are here

function Messaging_Send_Method::message_prepare in Messaging 7

Same name and namespace in other branches
  1. 6.4 includes/messaging_method.class.inc \Messaging_Send_Method::message_prepare()
  2. 6.3 classes/messaging_method.class.inc \Messaging_Send_Method::message_prepare()

Message processing: Decide on queue, log, cron and send options, prepare parameters

At this stage, the message can be still redirected through other sending method, or marked for discard

File

./messaging.method.inc, line 160
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Send_Method
Sending method, implements all specific method functionality

Code

function message_prepare($message) {

  // Set queueing if not message priority
  if ($this->queue && $message->priority <= 0) {
    $message->queue = 1;
  }
  $message->log = $message->log || $this->log;
  $this
    ->message_log('Message prepared', $message);
}