You are here

function voting_rules_votingapi_results in Voting Rules 6

Same name and namespace in other branches
  1. 7 voting_rules.module \voting_rules_votingapi_results()

Implementation of hook_votingapi_results().

File

./voting_rules.module, line 48
Provides Rules intregration for the Votingapi module

Code

function voting_rules_votingapi_results($cached, $content_type, $content_id) {
  $content = voting_rules_load_content($content_type, $content_id);
  if ($content) {
    rules_invoke_event('voting_rules_results_' . $content_type, $cached, $content);
    rules_invoke_event('voting_rules_results', $vote);
  }
}