public function Messaging_Template::build_element in Messaging 7
Build a named element
1 call to Messaging_Template::build_element()
- Messaging_Template::build_parts in messaging_template/
messaging_template.inc - Build template parts
File
- messaging_template/
messaging_template.inc, line 215 - Drupal Messaging Framework - Text filtering functions
Class
- Messaging_Template
- Base template class
Code
public function build_element($name, $options = array()) {
$text = $this
->get_text($name);
$element = $text ? $this
->build_text($text) : array();
$element += $this
->element_defaults($name);
if (!empty($element['#parts'])) {
// If the element has subparts, build them before the element
$element += $this
->build_parts($element['#parts']);
}
return $this
->element_build($element);
}