You are here

function Messaging_Send_Method::user_destination in Messaging 6.3

Same name and namespace in other branches
  1. 7 messaging.method.inc \Messaging_Send_Method::user_destination()

Get destination for user

File

classes/messaging_method.class.inc, line 89
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Send_Method
Sending method, implements all specific method functionality

Code

function user_destination($account) {
  if (($property = $this->destination) && !empty($account->{$property})) {

    // Get destination property from user account
    return $account->{$property};
  }
  elseif ($callback = $this
    ->get_callback('destination')) {

    // Backwards compatibility, call destination callback
    return $this
      ->callback_invoke($callback, $account);
  }
}