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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | decisions_results_wrapper.patch | 2.58 KB | ezra-g |
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | decisions_results_wrapper.patch | 2.58 KB | ezra-g |
Comments
Comment #1
ezra-g commentedI 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().
Comment #2
ezra-g commentedI 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.