You are here

function realname_user_load in Real Name 8

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

Implements hook_ENTITY_TYPE_load().

File

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

Code

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