function _advpoll_clear_votes_access in Advanced Poll 6.3
Same name and namespace in other branches
- 6 advpoll.module \_advpoll_clear_votes_access()
- 6.2 advpoll.module \_advpoll_clear_votes_access()
- 7.3 advpoll.module \_advpoll_clear_votes_access()
- 7 advpoll.module \_advpoll_clear_votes_access()
- 7.2 advpoll.module \_advpoll_clear_votes_access()
Clear votes access callback.
1 call to _advpoll_clear_votes_access()
- advpoll_votes_page in ./
advpoll.pages.inc - Display the votes page.
1 string reference to '_advpoll_clear_votes_access'
- advpoll_menu in ./
advpoll.module - Implementation of hook_menu().
File
- ./
advpoll.module, line 229 - Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.
Code
function _advpoll_clear_votes_access($node) {
return strstr($node->type, 'advpoll_') && $node->votes > 0 && user_access('administer polls');
}