You are here

function Messaging_Template::get_element in Messaging 7

Get element from elements or default texts

File

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

Class

Messaging_Template
Base template class

Code

function get_element($type, $options = array()) {
  if (isset($this->elements[$type])) {
    return $this->elements[$type];
  }
  else {
    return $this
      ->get_text($type, $options);
  }
}