You are here

protected function Messaging_Template::element_build in Messaging 7

Build a message element with optional text replacement

1 call to Messaging_Template::element_build()
Messaging_Template::build_element in messaging_template/messaging_template.inc
Build a named element

File

messaging_template/messaging_template.inc, line 247
Drupal Messaging Framework - Text filtering functions

Class

Messaging_Template
Base template class

Code

protected function element_build($element, $options = array()) {
  foreach (element_children($element) as $key) {
    $element[$key] = $this
      ->build_text($element[$key], $options);
  }

  /*
  if (!empty($element['#tokens']) && (!isset($options['replace']) || $options['replace'])) {
    $element = $this->element_replace($element, $options);
  }
  */
  return $element;
}