function protected_node_rules_rules_condition_info in Protected Node 7
Same name and namespace in other branches
- 6 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()
Implements hook_rules_condition_info().
File
- protected_node_rules/
protected_node_rules.rules.inc, line 11 - Rules integration for the protected_node module.
Code
function protected_node_rules_rules_condition_info() {
$items = array();
$defaults = array(
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('Content'),
),
),
'group' => t('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_has_password'] = array(
'label' => t('Content has password'),
'help' => t('Evaluates to TRUE when the node has 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;
}