You are here

function Messaging_Template::reset_elements in Messaging 6.3

Reset recursively an array of elements

1 call to Messaging_Template::reset_elements()
Messaging_Template::reset in messaging_template/messaging_template.inc
Reset all template elements for new rendering

File

messaging_template/messaging_template.inc, line 343
Base classes for messaging templates

Class

Messaging_Template
Messaging Template class

Code

function reset_elements(&$elements) {
  foreach ($elements as $element) {
    if (is_object($element)) {
      $element
        ->reset(TRUE);
    }
    elseif (is_array($element)) {
      reset_elements($element);
    }
  }
}