function realname_delete_all in Real Name 8
Same name and namespace in other branches
- 7 realname.module \realname_delete_all()
- 2.x realname.module \realname_delete_all()
Delete all real names.
Related topics
1 call to realname_delete_all()
- ConfigCacheTag::onSave in src/
EventSubscriber/ ConfigCacheTag.php - Invalidate cache tags when particular realname config objects are saved.
File
- ./
realname.module, line 285 - Provides token-based name displays for users.
Code
function realname_delete_all() {
\Drupal::database()
->truncate('realname')
->execute();
drupal_static_reset('realname_load_multiple');
\Drupal::entityTypeManager()
->getStorage('user')
->resetCache();
}