function _poll_menu_access
Same name and namespace in other branches
- 6.x drupal-6.x/modules/poll/poll.module \_poll_menu_access()
Callback function to see if a node is acceptable for poll menu items.
2 string references to '_poll_menu_access'
- drupal-6.filled.database.php in drupal-7.x/
modules/ simpletest/ tests/ upgrade/ drupal-6.filled.database.php - Filled installation of Drupal 6.17, for test purposes.
- poll_menu in drupal-7.x/
modules/ poll/ poll.module - Implements hook_menu().
Archivo
- drupal-7.x/
modules/ poll/ poll.module, line 126 - Enables your site to capture votes on different topics in the form of multiple choice questions.
Código
function _poll_menu_access($node, $perm, $inspect_allowvotes) {
return user_access($perm) && ($node->type == 'poll') && ($node->allowvotes || !$inspect_allowvotes);
}