You are here

function acl_delete_acl in ACL 7

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

Delete an existing ACL.

1 call to acl_delete_acl()
AclWebTestCase::testNodeAclCreateDelete in tests/acl.test
Includes acl_create_acl, acl_delete_acl, acl_get_id_by_name

File

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

Code

function acl_delete_acl($acl_id) {
  db_delete('acl')
    ->condition('acl_id', $acl_id)
    ->execute();
  db_delete('acl_user')
    ->condition('acl_id', $acl_id)
    ->execute();
  db_delete('acl_node')
    ->condition('acl_id', $acl_id)
    ->execute();
}