You are here

function messaging_user_destination in Messaging 6.4

Same name and namespace in other branches
  1. 6 messaging.module \messaging_user_destination()
  2. 6.2 messaging.module \messaging_user_destination()
  3. 6.3 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

4 calls to messaging_user_destination()
messaging_account_build_destination in ./messaging.module
Build destination object from user account (and create destination if not exists)
Messaging_API_Tests::testMessagingBasicAPI in tests/messaging_api.test
Exercise basic API functions
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

File

./messaging.module, line 361

Code

function messaging_user_destination($account, $method, $message = NULL) {
  return messaging_send_method($method)
    ->get_user_address($account);
}