You are here

function messaging_user_object in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.module \messaging_user_object()

Helper function, get object from account parameter (object or uid)

7 calls to messaging_user_object()
Messaging_Destination::validate_method in includes/messaging_destination.class.inc
Validate values to create a destination
Messaging_Method_Mail::get_user_address in messaging_mail/messaging_method_mail.class.inc
Get address for user account
messaging_privatemsg_send_msg in messaging_privatemsg/messaging_privatemsg.module
Send mail message to user accounts
Messaging_Send_Method::get_user_address in includes/messaging_method.class.inc
Get address for user account
messaging_sms_user_destination in messaging_sms/messaging_sms.module
Map user account to SMS destination (phone number)

... See full list

1 string reference to 'messaging_user_object'
messaging_message_bulk_send in ./messaging.module
Send message to multiple users. For each user it will use the preferred method

File

./messaging.module, line 1268

Code

function messaging_user_object($account) {
  return is_object($account) ? $account : messaging_load_user((int) $account);
}