You are here

static function Messaging_Template_Engine::build_template in Messaging 6.3

Build a given template

2 calls to Messaging_Template_Engine::build_template()
Messaging_Template::text_part in messaging_template/messaging_template.inc
Get template text part, FALSE if not found
Messaging_Template_Engine::get_template_part in messaging_template/messaging_template.inc
Get template part, FALSE if not found

File

messaging_template/messaging_template.inc, line 102
Base classes for messaging templates

Class

Messaging_Template_Engine
Static template functions that interact with the module API

Code

static function build_template($type, $method, $language) {
  $lang = $language->language;
  if (!isset(self::$templates[$lang][$type][$method])) {
    self::_debug('Building template', array(
      'type' => $type,
      'method' => $method,
    ));
    self::$templates[$lang][$type][$method] = messaging_template_get_parts($type, $method, $language);
  }
}