function Messaging_Template::reset in Messaging 6.3
Same name and namespace in other branches
- 7 messaging_template/messaging_template.inc \Messaging_Template::reset()
Reset all template elements for new rendering
Parameters
$recurse: Reset child templates too
Overrides Messaging_Template_Element::reset
File
- messaging_template/
messaging_template.inc, line 333 - Base classes for messaging templates
Class
- Messaging_Template
- Messaging Template class
Code
function reset($recurse = FALSE) {
$this->rendered = FALSE;
$this->texts = array();
if ($recurse && $this->elements) {
$this
->reset_elements($this->elements);
}
}