You are here

function Messaging_Message::get_template in Messaging 7

Get message template for current method

1 call to Messaging_Message::get_template()
Messaging_Message::get_text in ./messaging.message.inc
Get template text, prepared for this method

File

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

Class

Messaging_Message
Message class

Code

function get_template() {
  if (empty($this->method)) {
    return $this
      ->default_template();
  }
  elseif (!isset($this->template[$this->method])) {
    $this
      ->render();
  }
  return $this->template[$this->method];
}