It would be great to have a wrapper function for votingapi_select_results() that specifies Decisions VotingAPI criteria for a given nid and returns the results.

CommentFileSizeAuthor
#1 decisions_results_wrapper.patch2.58 KBezra-g

Comments

ezra-g’s picture

Status: Active » Fixed
StatusFileSize
new2.58 KB

I added a similar function to selection.module as part of asynchronous voting, but there's no reason it can't be used by other voting modes. So, this patch is applied and now we have decisions_get_votes() and decisions_get_results().

ezra-g’s picture

I committed an additional change to decisions_get_votes() so that it includes the uid in the vote criteria for anonymous and authenticated voters so that anons can vote after an authenticated user logs out on the same machine.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.