function flexiaccess_page_reset in Flexi Access 7
Clear all ACLs for current node.
1 string reference to 'flexiaccess_page_reset'
- flexiaccess_page in ./
flexiaccess.nodes.inc - Build form to handle ACLs for node.
File
- ./
flexiaccess.nodes.inc, line 127 - Form handling for per node ACL.
Code
function flexiaccess_page_reset($form, &$form_state) {
$node = $form_state['node'];
acl_node_clear_acls($node->nid, 'flexiaccess');
// Apply new settings.
node_access_acquire_grants($node, TRUE);
cache_clear_all();
drupal_set_message(t('The ACLs list for the node has been removed.'));
}