You are here

static function Messaging_Template_Engine::create_template in Messaging 6.3

Create template, just allowed types

1 call to Messaging_Template_Engine::create_template()
Messaging_Template::get_template in messaging_template/messaging_template.inc
Get child template derived from this one

File

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

Class

Messaging_Template_Engine
Static template functions that interact with the module API

Code

static function create_template($type = 'messaging-template', $parent = NULL, $method = NULL, $language = NULL) {

  // Check this is a known type, if not return NULL
  if (self::get_info($type)) {
    return new Message_Template($type, $parent, $method, $language);
  }
  else {
    return NULL;
  }
}