You are here

function Messaging_Message_Template::set_destination in Messaging 7

Set destination (and reset built elements)

Overrides Messaging_Message_Render::set_destination

File

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

Class

Messaging_Message_Template
Template for a full message (subject, body, etc..)

Code

function set_destination($destination) {
  $this
    ->add_object('destination', $destination);
  $this
    ->add_object('user', $destination
    ->get_user());
  $this
    ->reset();
  return $this;
}