You are here

function Messaging_Template::debug in Messaging 6.3

Debug, adding instance information

1 call to Messaging_Template::debug()
Messaging_Template::text_part in messaging_template/messaging_template.inc
Get template text part, FALSE if not found

File

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

Class

Messaging_Template
Messaging Template class

Code

function debug($txt, $variables = array()) {
  if ($this->debug) {
    $variables += array(
      'type' => $this->type,
      'method' => $this
        ->get_method(),
    );
    messaging_debug($txt, $variables);
  }
}