You are here

function quiz_get_feedback_times in Quiz 7.5

Get the feedback options for Quizzes.

4 calls to quiz_get_feedback_times()
quiz_admin_settings in ./quiz.admin.inc
This builds the main settings form for the quiz module.
quiz_default_rules_configuration in ./quiz.rules_defaults.inc
Implements hook_default_rules_configuration().
quiz_feedback_page in ./quiz.admin.inc
Admin page for feedback settings.
quiz_form in ./quiz.module
Implements hook_form().

File

./quiz.module, line 3835
quiz.module Main file for the Quiz module.

Code

function quiz_get_feedback_times() {
  $feedback_times = array(
    'question' => array(
      'name' => t('After the question'),
      'description' => t('Show feedback after the question'),
    ),
    'end' => array(
      'name' => t('After the quiz'),
      'description' => t('Show feedback after the quiz'),
    ),
  );
  $feedback_times += module_invoke_all('quiz_feedback_times');
  drupal_alter('quiz_feedback_times', $feedback_times);
  return $feedback_times;
}