function Messaging_Message::get_addresses in Messaging 6.4
Get addresses for this to be sent to
File
- includes/
messaging_message.class.inc, line 526 - Drupal Messaging Framework - Message class file
Class
- Messaging_Message
- Message class
Code
function get_addresses() {
$this
->set_destination();
$addresses = array();
if (!empty($this->destination)) {
if ($this->destination != self::MULTIPLE_DESTINATION) {
$addresses[] = $this->destination;
}
elseif (!empty($this->destinations)) {
foreach ($this->destinations as $destination) {
$addresses[] = is_object($destination) ? $destination->address : $destination;
}
}
}
return $addresses;
}