You are here

userpoints_rules.module in User Points 6

Same filename and directory in other branches
  1. 7 userpoints_rules.module

Rules integration for the user points module.

File

userpoints_rules.module
View source
<?php

/**
 * @file
 * Rules integration for the user points module.
 */

/**
 * Rules events -Trigger event when user points awarded.
 */
function userpoints_rules_userpoints($op, $params = '') {
  switch ($op) {
    case 'points after':
      $account = user_load($params['uid']);
      rules_invoke_event('userpoints_event_points_awarded', $account, $params);
      break;
  }
}

Functions

Namesort descending Description
userpoints_rules_userpoints Rules events -Trigger event when user points awarded.