You are here

function hook_quiz_question_info in Quiz 8.6

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

Implements hook_quiz_question_info().

Define a new question type. The question provider must extend QuizQuestion, and the response provider must extend QuizQuestionResponse. See those classes for additional implementation details.

1 function implements hook_quiz_question_info()

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

scale_quiz_question_info in question_types/quiz_scale/quiz_scale.module
Implements hook_quiz_question_info().

File

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

Code

function hook_quiz_question_info() {
  return array(
    'long_answer' => array(
      'name' => t('Example question type'),
      'description' => t('An example question type that does something.'),
      'question provider' => 'ExampleAnswerQuestion',
      'response provider' => 'ExampleAnswerResponse',
      'module' => 'quiz_question',
    ),
  );
}