You are here

function hook_quiz_access_alter in Quiz 7.5

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

Implements hook_quiz_access_alter().

Alter the access blockers for a Quiz.

1 invocation of hook_quiz_access_alter()
quiz_access in ./quiz.module
Find out if a quiz is available for taking or not.

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']);
  }
}