You are here

function userpoints_rules_action_info in User Points 6

Implementation of hook_rules_action_info().

File

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

Code

function userpoints_rules_action_info() {
  return array(
    'userpoints_action_grant_points' => array(
      'label' => t('Grant !points to a user', userpoints_translation()),
      'arguments' => array(
        'user' => array(
          'type' => 'user',
          'label' => t('User'),
        ),
      ),
      'module' => 'Userpoints',
      'eval input' => array(
        'points',
        'entity_id',
        'description',
        'operation',
      ),
    ),
  );
}