function realname_user_update in Real Name 8
Same name and namespace in other branches
- 7 realname.module \realname_user_update()
- 2.x 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);
}