You are here

public function Messaging_Template::reset in Messaging 7

Same name and namespace in other branches
  1. 6.3 messaging_template/messaging_template.inc \Messaging_Template::reset()

Reset built elements

Parameters

$part1, $part2...: Optional parts to reset

4 calls to Messaging_Template::reset()
Messaging_Message_Template::set_destination in messaging_template/messaging_template.inc
Set destination (and reset built elements)
Messaging_Message_Template::set_format in messaging_template/messaging_template.inc
Set text format
Messaging_Message_Template::set_method in messaging_template/messaging_template.inc
Set sending method
Messaging_Template::set_language in messaging_template/messaging_template.inc
Set language

File

messaging_template/messaging_template.inc, line 157
Drupal Messaging Framework - Text filtering functions

Class

Messaging_Template
Base template class

Code

public function reset() {
  $parts = func_get_args();
  if ($parts) {
    foreach ($parts as $key) {
      if (isset($this->elements[$key])) {
        unset($this->elements[$key]);
      }
    }
  }
  else {
    unset($this->elements);
  }
}