function user_rules_condition_info in Rules 6
Implementation of hook_rules_condition_info().
Related topics
File
- rules/
modules/ user.rules.inc, line 83 - rules integration for the user module
Code
function user_rules_condition_info() {
return array(
'rules_condition_user_comparison' => array(
'label' => t('Compare two users'),
'arguments' => array(
'user1' => array(
'type' => 'user',
'label' => t('User account 1'),
),
'user2' => array(
'type' => 'user',
'label' => t('User account 2'),
),
),
'help' => t('Evaluates to TRUE, if both given user accounts are the same.'),
'module' => 'User',
),
'rules_condition_user_hasrole' => array(
'label' => t('User has role(s)'),
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('User'),
),
),
'help' => t('Whether the user has the selected role(s).'),
'module' => 'User',
),
);
}