You are here

function hook_quiz_question_info in Quiz 7.6

Same name and namespace in other branches
  1. 8.6 quiz.api.php \hook_quiz_question_info()
  2. 8.5 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.

8 functions implement 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.

long_answer_quiz_question_info in question_types/long_answer/long_answer.module
Implements hook_quiz_question_info().
matching_quiz_question_info in question_types/matching/matching.module
Implements hook_quiz_question_info().
multichoice_quiz_question_info in question_types/multichoice/multichoice.module
Implements hook_quiz_question_info().
quiz_directions_quiz_question_info in question_types/quiz_directions/quiz_directions.module
Implements hook_quiz_question_info().
quiz_page_quiz_question_info in question_types/quiz_page/quiz_page.module
Implements hook_quiz_question_info().

... See full list

2 invocations of hook_quiz_question_info()
quiz_get_question_types in ./quiz.module
Retrieve list of question types.
quiz_question_get_info in question_types/quiz_question/quiz_question.module
Get the information about various implementations of quiz questions.

File

./quiz.api.php, line 63
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',
    ),
  );
}