You are here

function Messaging_Template::add_item in Messaging 7

Add item of unknown type

File

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

Class

Messaging_Template
Base template class

Code

function add_item($name, $value) {
  if (is_string($value)) {
    return $this
      ->add_string($name, $value);
  }
  elseif (is_object($value)) {
    return $this
      ->add_text($name, $value);
  }
  elseif (is_array($value)) {
    return $this
      ->add_element($name, $value);
  }
}