You are here

function realname_get_user in Real Name 6

Helper to replace user_load() and be much faster.

2 calls to realname_get_user()
realname_comment in ./realname.module
Implements hook_comment().
realname_nodeapi in ./realname.module
Implements hook_nodeapi().

File

./realname.module, line 480

Code

function realname_get_user($uid) {
  $result = db_query("SELECT uid, name, mail FROM {users} WHERE uid = %d", $uid);
  $account = db_fetch_object($result);
  $account->name = realname_make_name($account);
  return $account;
}