userpoints_rules.module in User Points 6
Same filename and directory in other branches
Rules integration for the user points module.
File
userpoints_rules.moduleView 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
Name | Description |
---|---|
userpoints_rules_userpoints | Rules events -Trigger event when user points awarded. |