You are here

function Messaging_Template::get_string in Messaging 6.3

Get text element as string

1 call to Messaging_Template::get_string()
Messaging_Template::__toString in messaging_template/messaging_template.inc

File

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

Class

Messaging_Template
Messaging Template class

Code

function get_string($key, $glue = "\n", $default = '') {
  if ($text = $this
    ->get_text($key)) {
    return $this
      ->compose($text, $glue);
  }
  else {
    return $default;
  }
}