You are here

function acl_delete_acl in ACL 6

Same name and namespace in other branches
  1. 8 acl.module \acl_delete_acl()
  2. 5 acl.module \acl_delete_acl()
  3. 7 acl.module \acl_delete_acl()

Delete an existing ACL.

File

./acl.module, line 37
An API module providing by-user access control lists.

Code

function acl_delete_acl($acl_id) {
  db_query("DELETE FROM {acl} WHERE acl_id = %d", $acl_id);
  acl_remove_all_users($acl_id);
  db_query("DELETE FROM {acl_node} WHERE acl_id = %d", $acl_id);
}