I'd like my users to be able to vote only on nodes created less that one month ago.
I've tryed to use the hook_fivestar_access, and it avoids the vote to be casted, but the widget is displaying as if it was possible to vote and it is confusing.
I've explored the module, and found the function _fivestar_allow_vote($element) which would do the job, but I can't hook in it.
Did I miss something ?
After having thought about it, the best way to handle my case would be that the function _fivestar_allow_vote return FALSE if the user does not have permission to vote.
Does is sounds logical ?
If yes I'll provide a patch.
Comments
Comment #1
dbt102 CreditAttribution: dbt102 at BACnet Interest Group - Drupal for BACnet Interest Group - Drupal commentedComment #2
TR CreditAttribution: TR commentedNew features need to go into the current version of Fivestar first.