function heartbeat_user_load in Heartbeat 6.4
Function to load users within heartbeat cached system.
Parameters
Integer $uid: The ID of the user
Return value
Object $user A full user object
9 calls to heartbeat_user_load()
- HeartbeatActivity::__construct in includes/
heartbeatactivity.inc - constructor
- heartbeat_block in ./
heartbeat.module - Implementation of hook_blocks().
- heartbeat_comments_form_submit in modules/
heartbeat_comments/ heartbeat_comments.module - User submitted a heartbeat comment.
- heartbeat_messages_page in ./
heartbeat.pages.inc - Page callback function to load an activity stream page.
- hrules_token_values in modules/
heartbeat_rules/ hrules.module - Implementation of hook_token_values().
File
- ./
heartbeat.common.inc, line 261 - Commonly functions used in heartbeat
Code
function heartbeat_user_load($uid) {
static $users;
if (!isset($users[$uid])) {
$users[$uid] = user_load($uid);
}
return $users[$uid];
}