You are here

function Messaging_Send_Method::get_user_address in Messaging 6.4

Get address for user account

Parameters

$account: User account object or uid

File

includes/messaging_method.class.inc, line 223
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Send_Method
Sending method, implements all specific method functionality

Code

function get_user_address($account) {

  // The method may have its own destination callback. If not, default to address type,
  if ($function = $this
    ->get_info('destination callback')) {
    return $function(messaging_user_object($account));
  }
  elseif ($function = $this
    ->get_address_info('user2address callback')) {
    return $function($account);
  }
  elseif ($property = $this
    ->get_address_info('account_property')) {
    return messaging_user_property($account, $property);
  }
}