quiz_page.module in Quiz 7.6
Same filename and directory in other branches
Pages are implemented as a question type. They do not affect the score.
File
question_types/quiz_page/quiz_page.moduleView source
<?php
/**
* @file quiz_page.module
*
* Pages are implemented as a question type. They do not affect the score.
*/
/**
* Implements hook_help().
*/
function quiz_page_help($path, $args) {
if ($path == 'admin/help#quiz_pages') {
return t('Provides pages which can contain questions in a quiz.');
}
}
/**
* Implements hook_quiz_question_info().
*/
function quiz_page_quiz_question_info() {
return array(
'quiz_page' => array(
'name' => t('@quiz page', array(
'@quiz' => QUIZ_NAME,
)),
'description' => t('Quiz pages allow you display questions across multiple pages.'),
'question provider' => 'QuizPagesQuestion',
'response provider' => 'QuizPagesResponse',
'module' => 'quiz_question',
),
);
}
/**
* Implements hook_quiz_question_config().
*/
function quiz_page_quiz_question_config() {
return FALSE;
}
Functions
Name | Description |
---|---|
quiz_page_help | Implements hook_help(). |
quiz_page_quiz_question_config | Implements hook_quiz_question_config(). |
quiz_page_quiz_question_info | Implements hook_quiz_question_info(). |