You are here

function realname_user_update in Real Name 2.x

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

Implements hook_ENTITY_TYPE_update().

File

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

Code

function realname_user_update(EntityInterface $account) {

  // Since user data may have changed, update the realname and its cache.
  $realnames =& drupal_static('realname_load_multiple', []);
  $realnames[$account
    ->id()] = realname_update($account);
}