Callback function to see if a node is acceptable for poll menu items.
function _poll_menu_access($node, $perm, $inspect_allowvotes) { return user_access($perm) && $node->type == 'poll' && ($node->allowvotes || !$inspect_allowvotes); }