You are here

function _content_access_remove_acls in Content Access 7

Same name and namespace in other branches
  1. 8 content_access.module \_content_access_remove_acls()
  2. 6 content_access.admin.inc \_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
Submit handler for per content type settings form.

File

./content_access.module, line 664
Content access module file.

Code

function _content_access_remove_acls($type) {
  $result = db_query("SELECT n.nid FROM {node} n WHERE type = :type", array(
    'type' => $type,
  ));
  foreach ($result as $node) {
    acl_node_clear_acls($node->nid, 'content_access');
  }
}