function content_rules_condition_info in Content Construction Kit (CCK) 6.3
Same name and namespace in other branches
- 6.2 includes/content.rules.inc \content_rules_condition_info()
Implementation of hook_rules_condition_info().
File
- includes/
content.rules.inc, line 206 - Provides basic rules module support.
Code
function content_rules_condition_info() {
$info = array();
$info['content_rules_field_has_value'] = array(
'label' => t('Field has value'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Content'),
),
),
'eval input' => array(
'code',
),
'help' => t('You should make sure that the used field exists in the given content type. The condition returns TRUE, if the selected field has the given value.'),
'module' => 'CCK',
);
$info['content_rules_field_changed'] = array(
'label' => t('Field has changed'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Content containing changes'),
),
'node_unchanged' => array(
'type' => 'node',
'label' => t('Content not containing changes'),
),
),
'help' => t('You should make sure that the used field exists in the given content type.'),
'module' => 'CCK',
);
return $info;
}