You are here

function og_quiz_take_access in OG Quiz 7

Custom access callback for taking quiz.

Parameters

stdClass $node:

Return value

bool

1 string reference to 'og_quiz_take_access'
og_quiz_menu_alter in ./og_quiz.module
Implements hook_menu_alter().

File

./og_quiz.module, line 267
Module hooks and custom logic.

Code

function og_quiz_take_access($node) {
  if ($node->type != 'quiz' || !quiz_availability($node)) {
    return FALSE;
  }
  $access = og_quiz_ogs_access($node, 'access quiz');
  return isset($access) ? $access : quiz_take_access($node);
}