You are here

function messaging_user_destination in Messaging 6.3

Same name and namespace in other branches
  1. 6.4 messaging.module \messaging_user_destination()
  2. 6 messaging.module \messaging_user_destination()
  3. 6.2 messaging.module \messaging_user_destination()
  4. 7 messaging.module \messaging_user_destination()

Get destination from user account.

This will handle also anonymous user accounts that should have a 'destination' property

6 calls to messaging_user_destination()
Messaging_Message::set_sender in classes/messaging_message.class.inc
Set sender account and related properties
Messaging_Message::set_user in classes/messaging_message.class.inc
Set destination user and find method's destination for this user if not set
messaging_message_send_user in ./messaging.module
Send message to user represented by account
Messaging_Methods_Tests::testMessagingMethods in tests/messaging_methods.test
Test message sending callbacks for enabled plug-ins
messaging_method_list in ./messaging.module
List sending methods

... See full list

File

./messaging.module, line 206

Code

function messaging_user_destination($account, $method) {
  if ($send_method = messaging_send_method($method)) {
    return $send_method
      ->user_destination($account);
  }
}