function _heartbeat_user_load in Heartbeat 7
Helper function to load the users from static cache. There should be something in core to handle this.
File
- ./
heartbeat.module, line 1563 - Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.
Code
function _heartbeat_user_load($uid) {
static $users = array();
if (!isset($users[$uid])) {
$users[$uid] = user_load($uid);
}
return $users[$uid];
}