public function Messaging_Template::get_text in Messaging 7
Same name and namespace in other branches
- 6.3 messaging_template/messaging_template.inc \Messaging_Template::get_text()
Get text element from this template
2 calls to Messaging_Template::get_text()
- Messaging_Template::build_element in messaging_template/
messaging_template.inc - Build a named element
- Messaging_Template::get_element in messaging_template/
messaging_template.inc - Get element from elements or default texts
File
- messaging_template/
messaging_template.inc, line 317 - Drupal Messaging Framework - Text filtering functions
Class
- Messaging_Template
- Base template class
Code
public function get_text($type, $options = array()) {
if (isset($this->text[$type])) {
return $this->text[$type];
}
else {
$options += $this
->get_options();
return $this
->default_text($type, $options);
}
}