You are here

public static function Messaging_Mail_Address::get_address_from_user in Messaging 7

Get address from user

Overrides Messaging_Destination::get_address_from_user

File

messaging_mail/messaging_mail.inc, line 229
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Mail_Address
Mail addresses

Code

public static function get_address_from_user($user) {
  if ($user = messaging_user_object($user)) {
    return !empty($user->mail) ? $user->mail : NULL;
  }
}