protected function Messaging_Message::do_build in Messaging 7
Check parameters and go for alter hook
File
- ./
messaging.message.inc, line 372  - Drupal Messaging Framework - Message class file
 
Class
- Messaging_Message
 - Message class
 
Code
protected function do_build() {
  $this->template[$this->method] = clone $this
    ->default_template();
  // Save the method in case it changes
  $this
    ->set_status(self::STATUS_BUILD);
  // Provides a hook for other modules to modify the message before sending
  $this
    ->invoke_hook('build', $this);
  // The message must be built, without errors and not for discarding
  return $this
    ->check_status();
}