You are here

function hook_quiz_access_alter in Quiz 8.6

Same name and namespace in other branches
  1. 8.5 quiz.api.php \hook_quiz_access_alter()
  2. 7.5 quiz.api.php \hook_quiz_access_alter()

Implements hook_quiz_access_alter().

Alter the access blockers for a Quiz.

File

./quiz.api.php, line 194
quiz.api.php Hooks provided by Quiz module.

Code

function hook_quiz_access_alter(&$hooks, $op, $quiz, $account) {
  if ($op == 'take') {
    unset($hooks['monday']);
  }
}