You are here

function _content_access_remove_acls in Content Access 6

Same name and namespace in other branches
  1. 8 content_access.module \_content_access_remove_acls()
  2. 7 content_access.module \_content_access_remove_acls()

Detaches all our ACLs for the nodes of the given type.

1 call to _content_access_remove_acls()
content_access_admin_settings_submit in ./content_access.admin.inc

File

./content_access.admin.inc, line 395
Content access administration UI.

Code

function _content_access_remove_acls($type) {
  $result = db_query("SELECT n.nid FROM {node} n WHERE type = '%s'", $type);
  while ($node = db_fetch_object($result)) {
    acl_node_clear_acls($node->nid, 'content_access');
  }
}