Im one of those few people that make use of all these votingapi hooks :-D. And you have in votingapi_recalc function two hooks invoked.

one is a drupal alter

// Give other modules a chance to alter the collection of votes.
    drupal_alter('votingapi_results', $cache, $content_type, $content_id);

the other is a module_invoke

// Give other modules a chance to act on the results of the vote totaling.
    module_invoke_all('votingapi_results', $cached, $content_type, $content_id);

Both hooks have almost the same name (hook_votingapi_results is the later and hook_votingapi_results_alter is the first). Could we come up with new names?

howabout

drupal_alter('votingapi_cache_results')

and

module_invoke_all('votingapi_final_results')

I am notorious for my bad English :-D so there has to be better wording out there.

Comments

legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 6 is no longer supported. Closing old issues to clean up the issue queue.

Please reopen and update this issue if this is still an issue in the D7 or D8 version.