You are here

function userpoints_rules_amount in User Points 6

Condition: check current Userpoints

File

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

Code

function userpoints_rules_amount($account, $settings) {
  $balance = userpoints_get_current_points($account->uid, $settings['type']);
  return $balance >= $settings['amount'];
}