You are here

function userpoints_rules_get_current_points in User Points 7.2

Same name and namespace in other branches
  1. 7 userpoints_rules.rules.inc \userpoints_rules_get_current_points()

Rules action - load points of a user.

File

userpoints_rules/userpoints_rules.rules.inc, line 200
Provide better integration into the rules group

Code

function userpoints_rules_get_current_points($account, $tid) {
  return array(
    'loaded_points' => userpoints_get_current_points($account->uid, $tid),
  );
}