You are here

function Messaging_Message::add_destination in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.message.inc \Messaging_Message::add_destination()

Add destination to the list

File

includes/messaging_message.class.inc, line 517
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

function add_destination($destination) {
  $this->destination = self::MULTIPLE_DESTINATION;

  // This will also de-dupe destinations
  $this->destinations[$destination
    ->index()] = $destination;
}