You are here

function realname_user_load in Real Name 7

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

Implements hook_user_load().

File

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

Code

function realname_user_load($accounts) {
  $realnames = realname_load_multiple($accounts);
  foreach ($realnames as $uid => $realname) {
    $accounts[$uid]->realname = $realname;
  }
}