function voting_rules_condition_check_results in Voting Rules 6
Same name and namespace in other branches
- 7 voting_rules.rules.inc \voting_rules_condition_check_results()
Condition: Evaluate the results of the vote
3 calls to voting_rules_condition_check_results()
- voting_rules_condition_check_results_comment in ./
voting_rules.content-types.inc - Condition: Evaluate the results of the vote on a comment
- voting_rules_condition_check_results_node in ./
voting_rules.content-types.inc - Condition: Evaluate the results of the vote on a node
- voting_rules_condition_check_results_user in ./
voting_rules.content-types.inc - Condition: Evaluate the results of the vote on a user
File
- ./
voting_rules.rules.inc, line 177 - Provides Rules integration for the Votingapi module
Code
function voting_rules_condition_check_results($vote_results, $settings) {
foreach ($vote_results as $data) {
if ($data['function'] == $settings['function']) {
return eval('return ' . $data['value'] . $settings['operator'] . $settings['value'] . ';');
}
}
}