function quiz_theme in Quiz 8.6
Same name and namespace in other branches
- 8.4 quiz.module \quiz_theme()
- 8.5 quiz.module \quiz_theme()
- 6.6 quiz.module \quiz_theme()
- 6.2 quiz.module \quiz_theme()
- 6.3 quiz.module \quiz_theme()
- 6.4 quiz.module \quiz_theme()
- 6.5 quiz.module \quiz_theme()
- 7.6 quiz.module \quiz_theme()
- 7 quiz.module \quiz_theme()
- 7.4 quiz.module \quiz_theme()
- 7.5 quiz.module \quiz_theme()
- 6.x quiz.module \quiz_theme()
Implements hook_theme().
File
- ./
quiz.module, line 133 - Contains quiz.module
Code
function quiz_theme($existing, $type, $theme, $path) {
return array(
'quiz_progress' => array(
'variables' => array(
'current' => NULL,
'total' => NULL,
),
),
'question_selection_table' => array(
'render element' => 'form',
),
'quiz_answer_result' => array(
'variables' => array(),
),
'quiz_report_form' => array(
'render element' => 'form',
'path' => $path . '/theme',
'template' => 'quiz-report-form',
),
'quiz_question_score' => array(
'variables' => array(
'score' => NULL,
'max_score' => NULL,
'class' => NULL,
),
'template' => 'quiz-question-score',
),
'quiz_jumper' => array(
'variables' => array(
'total' => 0,
'current' => 0,
'siblings' => 0,
),
),
'quiz_pager' => array(
'variables' => array(
'total' => 0,
'current' => 0,
'siblings' => 0,
),
),
'quiz_questions_page' => array(
'render element' => 'form',
),
);
}