Access callback: Determines if a node is acceptable for poll menu items.
$node: The poll node object.
$perm: A permission the user must have to view the page.
$inspect_allowvotes: TRUE if the user can view votes, and FALSE if the user cannot view votes.
function _poll_menu_access($node, $perm, $inspect_allowvotes) {
return user_access($perm) && $node->type == 'poll' && ($node->allowvotes || !$inspect_allowvotes);
}