You are here

function protected_node_rules_condition_content_is_locked in Protected Node 7

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

Condition: check whether the current user has access to the node.

File

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

Code

function protected_node_rules_condition_content_is_locked($node) {
  return protected_node_is_locked($node->nid) !== FALSE;
}