function user_badges_rules_condition_info in User Badges 6.2
Same name and namespace in other branches
- 6 user_badges.rules.inc \user_badges_rules_condition_info()
- 7.4 user_badges.rules.inc \user_badges_rules_condition_info()
- 7.3 user_badges.rules.inc \user_badges_rules_condition_info()
Implementation of hook_rules_condition_info().
File
- ./
user_badges.rules.inc, line 34 - Provide better integration into the rules module
Code
function user_badges_rules_condition_info() {
return array(
'user_badges_has_badge' => array(
'label' => t('User has badge'),
'arguments' => array(
'account' => array(
'type' => 'user',
'label' => t('User'),
),
),
'module' => 'User Badges',
),
'user_badges_receives_badge' => array(
'label' => t('Badge user is receiving'),
'arguments' => array(
'badge_id' => array(
'type' => 'value',
'label' => t('The given Badge\'s ID'),
),
),
'module' => 'User Badges',
),
'user_badges_badge_count' => array(
'label' => t('User badge count'),
'arguments' => array(
'account' => array(
'type' => 'user',
'label' => t('User'),
),
'number' => array(
'type' => 'number',
'label' => t('Number'),
),
),
'module' => 'User Badges',
),
'user_badges_has_badge_by_name' => array(
'label' => t('User has badge by name'),
'arguments' => array(
'account' => array(
'type' => 'user',
'label' => t('User'),
),
'badgename' => array(
'type' => 'string',
'label' => t('Badge Name'),
),
),
'module' => 'User Badges',
),
);
}