Commit 4c600fbe authored by salvis's avatar salvis

#2580207 by mccrodp: Add missing acl_remove_all_users() function.

parent b82f8005
......@@ -3,6 +3,8 @@ CHANGELOG for ACL for Drupal 8
acl 8.x-1.x-dev:
Fixes:
- #2580207 by mccrodp: Add missing acl_remove_all_users() function.
acl 8.x-1.0-alpha1 (2015-10-19):
......
......@@ -92,6 +92,15 @@ function acl_remove_user($acl_id, $uid) {
->execute();
}
/**
* Remove all users from an ACL.
*/
function acl_remove_all_users($acl_id) {
Database::getConnection()->delete('acl_user')
->condition('acl_id', $acl_id)
->execute();
}
/**
* Provide a form to edit the ACL that can be embedded in other forms.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment