You are here

function hook_quiz_feedback_times_alter in Quiz 7.5

Same name and namespace in other branches
  1. 8.6 quiz.api.php \hook_quiz_feedback_times_alter()
  2. 8.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 tests/quiz_test/quiz_test.module
1 invocation of hook_quiz_feedback_times_alter()
quiz_get_feedback_times in ./quiz.module
Get the feedback options for Quizzes.

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