You are here

public function Messaging_Message::build in Messaging 6.4

Same name and namespace in other branches
  1. 6.3 classes/messaging_message.class.inc \Messaging_Message::build()

Check parameters and go for alter hook

1 call to Messaging_Message::build()
Messaging_Message::prepare in includes/messaging_message.class.inc
Prepare for sending through given method

File

includes/messaging_message.class.inc, line 149
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

public function build() {
  if (empty($this->built)) {
    $this
      ->set_destination();

    // If message priority > 0 this is not to be queued
    if ($this->priority > 0) {
      $this->queue = 0;
    }

    // Provides a hook for other modules to modify the message before sending
    drupal_alter('messaging_message', $this);
    $this->built = TRUE;
  }
  return $this->built && !$this->discard;
}