You are here

function Messaging_Message::add_address in Messaging 7

Add address or array of addresses as destination

1 call to Messaging_Message::add_address()
Messaging_Message::add_address_list in ./messaging.message.inc
Add list of addresses as destinations

File

./messaging.message.inc, line 157
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

function add_address($address, $validate = TRUE) {
  if ($destination = $this
    ->send_method()
    ->address_destination($address, $validate)) {
    $this
      ->add_destination($destination);
  }
  return $this;
}