function realname_delete_multiple in Real Name 2.x
Same name and namespace in other branches
- 8 realname.module \realname_delete_multiple()
- 7 realname.module \realname_delete_multiple()
Delete multiple real names.
Parameters
array $uids: An array of user IDs.
Related topics
1 call to realname_delete_multiple()
- realname_delete in ./
realname.module - Delete a real name.
File
- ./
realname.module, line 276 - Provides token-based name displays for users.
Code
function realname_delete_multiple(array $uids) {
\Drupal::database()
->delete('realname')
->condition('uid', $uids, 'IN')
->execute();
drupal_static_reset('realname_load_multiple');
\Drupal::entityTypeManager()
->getStorage('user')
->resetCache($uids);
}