You are here

function Messaging_Message::prepare in Messaging 6.3

Same name and namespace in other branches
  1. 6.4 includes/messaging_message.class.inc \Messaging_Message::prepare()

Prepare message for sending method, before rendering

3 calls to Messaging_Message::prepare()
Messaging_Message::process in classes/messaging_message.class.inc
Process message to the end (queue, send, log
Messaging_Message::save in classes/messaging_message.class.inc
Save to store / update
Messaging_Message::test in classes/messaging_message.class.inc
Testing message, just log data

File

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

Class

Messaging_Message
Message class

Code

function prepare() {

  // If the sending method has changed, prepare again
  if (!$this->prepared || $this->prepared != $this->method) {
    $this
      ->method_invoke('prepare');

    // Provides a hook for other modules to modify the message
    drupal_alter('message', $this);
    $this->prepared = $this->method;
    $this->rendered = FALSE;
  }
}