function protected_node_rules_rules_condition_info in Protected Node 6
Same name and namespace in other branches
- 7 protected_node_rules/protected_node_rules.rules.inc \protected_node_rules_rules_condition_info()
- 1.0.x protected_node_rules/protected_node_rules.rules.inc \protected_node_rules_rules_condition_info()
Implementation of hook_rules_condition_info().
File
- ./
protected_node_rules.rules.inc, line 24 - Rules integration for the protected_node module.
Code
function protected_node_rules_rules_condition_info() {
$items = array();
$defaults = array(
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Content'),
),
),
'module' => 'Protected Node',
);
$items['protected_node_rules_condition_content_is_protected'] = array(
'label' => t('Content is protected'),
'help' => t('Evaluates to TRUE when the node is protected by a password.'),
) + $defaults;
$items['protected_node_rules_condition_content_is_locked'] = array(
'label' => t('Content is locked from current user'),
'help' => t('Evaluates to TRUE when the node is locked by a password from the current user.'),
) + $defaults;
return $items;
}