You are here

function acl_delete_acl in ACL 5

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

Delete an existing ACL.

File

./acl.module, line 24
acl.module

Code

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