You are here

function realname_load in Real Name 7

Same name and namespace in other branches
  1. 8 realname.module \realname_load()
  2. 2.x realname.module \realname_load()

Loads a real name.

Parameters

object $account: A user account object.

Return value

mixed The user's generated real name.

Related topics

File

./realname.module, line 274
Provides token-based name displays for users.

Code

function realname_load($account) {
  $realnames = realname_load_multiple(array(
    $account->uid => $account,
  ));
  return reset($realnames);
}