function activity_user_load in Activity 6
Same name and namespace in other branches
- 5.4 activity.module \activity_user_load()
- 5.3 activity.module \activity_user_load()
Minimal user_load replacement for activity.
8 calls to activity_user_load()
- activity_block in ./
activity.module - Implementation of hook_block().
- activity_token_values in ./
activity.module - Token module integration. Defines available default token values.
- commentactivity_comment in contrib/
commentactivity/ commentactivity.module - Implementation of hook_comment().
- commentactivity_token_values in contrib/
commentactivity/ commentactivity.module - Token module integration. Defines available default token values.
- flagactivity_token_values in contrib/
flagactivity/ flagactivity.module - Token module integration. Defines available default token values.
File
- ./
activity.module, line 1071 - activity.module
Code
function activity_user_load($uid) {
static $users;
if (!isset($users[$uid])) {
$users[$uid] = db_fetch_object(db_query('SELECT uid, name, picture, status, access FROM {users} WHERE uid = %d', $uid));
}
return $users[$uid];
}