function userpoints_rules_rules_event_info in User Points 7
Same name and namespace in other branches
- 7.2 userpoints_rules/userpoints_rules.rules.inc \userpoints_rules_rules_event_info()
Implements hook_rules_event_info().
File
- ./
userpoints_rules.rules.inc, line 147 - Provide better integration into the rules group
Code
function userpoints_rules_rules_event_info() {
return array(
'userpoints_event_points_awarded_before' => array(
'label' => t('User will be awarded !points', userpoints_translation()),
'variables' => array(
'userpoints_transaction' => array(
'type' => 'userpoints_transaction',
'label' => t('!Points transaction', userpoints_translation()),
),
),
'group' => t('!Points', userpoints_translation()),
),
'userpoints_event_points_awarded_after' => array(
'label' => t('User was awarded !points', userpoints_translation()),
'variables' => array(
'userpoints_transaction' => array(
'type' => 'userpoints_transaction',
'label' => t('!Points transaction', userpoints_translation()),
),
),
'group' => t('!Points', userpoints_translation()),
),
);
}