You are here

function name_user_save in Name Field 8

Implements hook_user_save().

File

./name.module, line 278
Defines an API for displaying and inputing names.

Code

function name_user_save(UserInterface $entity) {
  $names =& drupal_static('name_user_realname_cache', []);
  unset($names[$entity
    ->id()]);
}