You are here

function hook_quiz_access in Quiz 6.x

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

Implements hook_entity_access().

Control access to Quizzes.

The behavior and return values are the same. Quiz introduces another operation: "take"

See also

quiz_quiz_access() for default access implementations.

hook_entity_access() for usage.

1 function implements hook_quiz_access()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

quiz_quiz_access in ./quiz.module
Implements hook_quiz_access().

File

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

Code

function hook_quiz_access(EntityInterface $entity, $operation, AccountInterface $account) {
  if ($operation == 'take') {
  }
}