You are here

function hook_quiz_feedback_times_alter in Quiz 8.5

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

Allow modules to alter the feedback times.

Parameters

array $feedback_times:

1 function implements hook_quiz_feedback_times_alter()

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

quiz_test_quiz_feedback_times_alter in modules/quiz_test/quiz_test.module

File

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

Code

function hook_quiz_feedback_times_alter(&$feedback_times) {

  // Change label.
  $feedback_times['end'] = t('At the end of a quiz');

  // Do not allow question feedback.
  unset($feedback_times['question']);
}