function messaging_user_object in Messaging 7
Same name and namespace in other branches
- 6.4 messaging.module \messaging_user_object()
Helper function, get object from account parameter (object or uid)
4 calls to messaging_user_object()
- Messaging_Destination::validate_method in ./
messaging.destination.inc - Validate values to create a destination
- Messaging_Mail_Address::get_address_from_user in messaging_mail/
messaging_mail.inc - Get address from user
- Messaging_Simple_Method::send_user in messaging_simple/
messaging_simple.inc - Send to user. Just store the message to be shown later.
- messaging_user_format_name in ./
messaging.module - Callback for printing user names
File
- ./
messaging.module, line 696
Code
function messaging_user_object($account) {
return is_object($account) ? $account : user_load((int) $account);
}