function Messaging_Destination::get_user in Messaging 7
Get user account
1 call to Messaging_Destination::get_user()
- Messaging_User_Destination::get_address in ./
messaging.destination.inc - Get address for sending
File
- ./
messaging.destination.inc, line 62 - Drupal Messaging Framework - Default class file
Class
- Messaging_Destination
- Message destination class
Code
function get_user() {
$user = isset($this->uid) ? user_load($this->uid) : NULL;
if (!$user) {
$user = drupal_anonymous_user();
$user->name = t('User');
}
return $user;
}