You are here

function content_access_action_reset_node_permissions in Content Access 6

Same name and namespace in other branches
  1. 5 content_access.workflow_ng.inc \content_access_action_reset_node_permissions()
  2. 7 content_access_rules/content_access_rules.rules.inc \content_access_action_reset_node_permissions()

Action implementation: Reset permissions for a node.

File

./content_access.rules.inc, line 210
Rules specific functions that expose content_access' API.

Code

function content_access_action_reset_node_permissions($node) {
  if (_content_access_rules_check_setting($node)) {
    content_access_delete_per_node_settings($node);

    // A following node_save() updates the grants for us.
    return array(
      'node' => $node,
    );
  }
}