You are here

function protected_node_rules_action_protect 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_protect()
  2. 1.0.x protected_node_rules/protected_node_rules.rules.inc \protected_node_rules_action_protect()

Activate the protection on the specified node.

File

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

Code

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