You are here

function protected_node_rules_action_unprotect in Protected Node 6

Same name and namespace in other branches
  1. 7 protected_node_rules/protected_node_rules.rules.inc \protected_node_rules_action_unprotect()
  2. 1.0.x protected_node_rules/protected_node_rules.rules.inc \protected_node_rules_action_unprotect()

Deactivate the protection on the specified node.

File

./protected_node_rules.rules.inc, line 110
Rules integration for the protected_node module.

Code

function protected_node_rules_action_unprotect($node) {
  $node->protected_node_is_protected = 0;
  return array(
    'node' => $node,
  );
}