You are here

function protected_node_rules_action_unlock in Protected Node 7

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

Grant access rights to the node to the current user.

File

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

Code

function protected_node_rules_action_unlock($node) {
  protected_node_unlock($node->nid);
  return array();
}