function acl_remove_all_users in ACL 8
Same name and namespace in other branches
- 6 acl.module \acl_remove_all_users()
- 7 acl.module \acl_remove_all_users()
Remove all users from an ACL.
File
- ./
acl.module, line 97 - An API module providing by-user access control lists.
Code
function acl_remove_all_users($acl_id) {
\Drupal::database()
->delete('acl_user')
->condition('acl_id', $acl_id)
->execute();
}