function _poll_menu_access in Drupal 6
Same name and namespace in other branches
- 7 modules/poll/poll.module \_poll_menu_access()
Callback function to see if a node is acceptable for poll menu items.
1 string reference to '_poll_menu_access'
- poll_menu in modules/
poll/ poll.module - Implementation of hook_menu().
File
- modules/
poll/ poll.module, line 120 - Enables your site to capture votes on different topics in the form of multiple choice questions.
Code
function _poll_menu_access($node, $perm, $inspect_allowvotes) {
return user_access($perm) && $node->type == 'poll' && ($node->allowvotes || !$inspect_allowvotes);
}