You are here

function poll_access in Drupal 4

Same name and namespace in other branches
  1. 5 modules/poll/poll.module \poll_access()
  2. 6 modules/poll/poll.module \poll_access()

Implementation of hook_access().

File

modules/poll.module, line 35
Enables your site to capture votes on different topics in the form of multiple choice questions.

Code

function poll_access($op, $node) {
  if ($op == 'create') {
    return user_access('create polls');
  }
}