protected function Messaging_Template::build_text in Messaging 7
Build a message text element
2 calls to Messaging_Template::build_text()
- Messaging_Template::build_element in messaging_template/
messaging_template.inc - Build a named element
- Messaging_Template::element_build in messaging_template/
messaging_template.inc - Build a message element with optional text replacement
File
- messaging_template/
messaging_template.inc, line 229 - Drupal Messaging Framework - Text filtering functions
Class
- Messaging_Template
- Base template class
Code
protected function build_text($element, $options = array()) {
if (is_object($element)) {
return $element
->build();
}
elseif (is_string($element)) {
return array(
'#markup' => $element,
);
}
elseif (is_array($element)) {
return $element;
}
else {
return array();
}
}