You are here

public function Messaging_Message_Text::add_element in Messaging 7

Add item of unknown type (string, renderable array)

Overrides Messaging_Message_Render::add_element

File

./messaging.text.inc, line 54
Basic message templates and theming

Class

Messaging_Message_Text
Very simple template with plain subject, header, content, footer texts

Code

public function add_element($name, $element) {
  $this->elements[$name] = is_array($element) ? $element : array(
    '#markup' => $element,
  );
}