You are here

protected function Messaging_Message::do_prepare in Messaging 7

Prepare for sending through given method

At this stage, message can be redirected to a different method, marked for queueing, etc..

File

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

Class

Messaging_Message
Message class

Code

protected function do_prepare() {
  $this
    ->set_status(self::STATUS_PREPARE);

  // Prepare invoking one or more sending methods
  $this
    ->send_method()
    ->message_prepare($this);

  // At this stage the message must be ready and have a valid destination
  return $this
    ->check_destination();
}