_poll_menu_access
function _poll_menu_access
_poll_menu_access($node, $perm, $inspect_allowvotes)
Callback function to see if a node is acceptable for poll menu items.
File
- modules/poll/poll.module, line 126
- 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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
登录查看完整内容