You are here

function _advpoll_results_access in Advanced Poll 6.2

Same name and namespace in other branches
  1. 6.3 advpoll.module \_advpoll_results_access()
  2. 6 advpoll.module \_advpoll_results_access()
  3. 7.3 advpoll.module \_advpoll_results_access()
  4. 7 advpoll.module \_advpoll_results_access()
  5. 7.2 advpoll.module \_advpoll_results_access()

Results access callback.

1 string reference to '_advpoll_results_access'
advpoll_menu in ./advpoll.module
Implementation of hook_menu().

File

./advpoll.module, line 206
Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.

Code

function _advpoll_results_access($node) {
  return strstr($node->type, 'advpoll_') && _advpoll_is_active($node) && $node->votes > 0 && !$node->voted && _advpoll_can_view_results($node);
}