function rb_misc_rules_condition_info in Rules Bonus Pack 6
Same name and namespace in other branches
- 7 rb_misc.rules.inc \rb_misc_rules_condition_info()
Implementation of hook_rules_condition_info().
File
- ./
rb_misc.module, line 12 - Miscellaneous conditions and actions for Rules.
Code
function rb_misc_rules_condition_info() {
$conditions = array(
'rb_misc_condition_arg' => array(
'label' => t('Verify path argument'),
'module' => 'Rules Bonus: Misc',
'eval input' => array(
'arg_value',
),
),
);
// Add conditions that depend on non-required modules.
if (module_exists('views')) {
$conditions['rb_misc_action_views_result_count'] = array(
'label' => t('Check number of results from a view'),
'eval input' => array(
'args',
),
'module' => 'Rules Bonus: Misc',
);
}
return $conditions;
}