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