We'd like voting API to expose another option for a field to views. We are trying to build a table view for boston2008.drupalcon.org for the showcase. We'd like one of the columns to display the "total vote points," which is essentially the average times the number of votes. Both these values are stored in votingapi_cache, but it is not available as a field in Views.
(There's a chance this is "VotingAPI percent vote result (sum)" BUT, if it is, then this is potentially a bug because when we add this field we get no data in that column.)
Comments
Comment #1
eaton commentedThis was discussed over IRC and hook_votingapi_recalculate() gives modules a chance to add their own aggregate functions.
Comment #2
benkovics commentedSo this means there is no way to have a 'sum' field from 'average' and 'count' fields?
It would just need a new field with multiplying these two ones, as far as I understand it ...
Any idea?