You are here

function userpoints_rules_category in User Points 6

Condition: check the transaction category

File

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

Code

function userpoints_rules_category($transaction, $settings) {
  return $transaction['tid'] == $settings['category'];
}