You are here

function hook_quiz_feedback_options_alter in Quiz 8.6

Same name and namespace in other branches
  1. 8.5 quiz.api.php \hook_quiz_feedback_options_alter()
  2. 7.5 quiz.api.php \hook_quiz_feedback_options_alter()
  3. 6.x quiz.api.php \hook_quiz_feedback_options_alter()

Allow modules to alter the quiz feedback options.

Parameters

array $review_options: An array of review options keyed by a machine name.

1 invocation of hook_quiz_feedback_options_alter()
quiz_get_feedback_options in ./quiz.module
Get the feedback options for Quizzes.

File

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

Code

function hook_quiz_feedback_options_alter(&$review_options) {

  // Change label.
  $review_options['quiz_feedback'] = t('General feedback from the Quiz.');

  // Disable showing correct answer.
  unset($review_options['solution']);
}