You are here

function userpoints_rules_event_info in User Points 6

Implementation of hook_rules_event_info().

File

./userpoints_rules.rules.inc, line 41
Provide better integration into the rules module

Code

function userpoints_rules_event_info() {
  return array(
    'userpoints_event_points_awarded' => array(
      'label' => t('User was awarded !points', userpoints_translation()),
      'arguments' => array(
        'user' => array(
          'type' => 'user',
          'label' => t('User'),
        ),
        'userpoints_transaction' => array(
          'type' => 'userpoints_transaction',
          'label' => t('Userpoints transaction'),
        ),
      ),
      'module' => 'Userpoints',
    ),
  );
}