function advpoll_ranking_vote_has_rank in Advanced Poll 7.3
Returns TRUE if @c $votes contains a vote of rank @c $rank.
1 call to advpoll_ranking_vote_has_rank()
- advpoll_ranking_process_results in advpoll_ranking/
advpoll_ranking.module
File
- advpoll_ranking/
advpoll_ranking.module, line 519
Code
function advpoll_ranking_vote_has_rank($votes, $rank) {
foreach ($votes as $vote) {
if ($vote['rank'] == $rank) {
return TRUE;
}
}
}