You are here

function Messaging_Message::destination_type in Messaging 7

Get list of destinations of this type

File

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

Class

Messaging_Message
Message class

Code

function destination_type($type) {
  $result = array();
  foreach ($this->destination as $key => $destination) {
    if ($destination->type == $type) {
      $result[$key] = $destination;
    }
  }
  return $result;
}