You are here

function Messaging_Template::compose in Messaging 6.3

Compose string

1 call to Messaging_Template::compose()
Messaging_Template::get_string in messaging_template/messaging_template.inc
Get text element as string

File

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

Class

Messaging_Template
Messaging Template class

Code

function compose($elements, $glue = "\n") {
  $compose = array();
  foreach ($elements as $part) {
    $compose[] = is_string($part) ? $part : $this
      ->compose($part, $glue);
  }
  return implode($glue, $compose);
}