public function Messaging_Template::build_parts in Messaging 7
Build template parts
3 calls to Messaging_Template::build_parts()
- Messaging_Template::build in messaging_template/
messaging_template.inc - Build all elements, return array
- Messaging_Template::build_element in messaging_template/
messaging_template.inc - Build a named element
- Messaging_Template::render in messaging_template/
messaging_template.inc - Render elements, return string
File
- messaging_template/
messaging_template.inc, line 199 - Drupal Messaging Framework - Text filtering functions
Class
- Messaging_Template
- Base template class
Code
public function build_parts($parts) {
$build = array();
foreach ($parts as $key) {
if (isset($this->elements[$key])) {
// This one was already built
$build[$key] = $this->elements[$key];
}
else {
$build[$key] = $this
->build_element($key);
}
}
return $build;
}