You are here

function voting_rules_condition_check_vote_value in Voting Rules 6

Same name and namespace in other branches
  1. 7 voting_rules.rules.inc \voting_rules_condition_check_vote_value()

Condition: Check the value of an individual vote

3 calls to voting_rules_condition_check_vote_value()
voting_rules_condition_check_vote_value_comment in ./voting_rules.content-types.inc
Condition: Check the value of an individual vote on a comment
voting_rules_condition_check_vote_value_node in ./voting_rules.content-types.inc
Condition: Check the value of an individual vote on a node
voting_rules_condition_check_vote_value_user in ./voting_rules.content-types.inc
Condition: Check the value of an individual vote on a user

File

./voting_rules.rules.inc, line 188
Provides Rules integration for the Votingapi module

Code

function voting_rules_condition_check_vote_value($vote, $settings) {
  $string = 'return ' . $vote['value'] . $settings['operator'] . $settings['value'] . ';';
  return eval($string);
}