You are here

function protected_node_rules_condition_content_has_password in Protected Node 7

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

Condition: check whether the node has a password.

File

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

Code

function protected_node_rules_condition_content_has_password($node, $settings) {
  return !empty($node->protected_node_passwd);
}