quiz_question.theme.inc in Quiz 8.4
Same filename and directory in other branches
- 6.6 question_types/quiz_question/quiz_question.theme.inc
- 6.3 question_types/quiz_question/quiz_question.theme.inc
- 6.4 question_types/quiz_question/quiz_question.theme.inc
- 6.5 question_types/quiz_question/quiz_question.theme.inc
- 7.6 question_types/quiz_question/quiz_question.theme.inc
- 7 question_types/quiz_question/quiz_question.theme.inc
- 7.4 question_types/quiz_question/quiz_question.theme.inc
- 7.5 question_types/quiz_question/quiz_question.theme.inc
File
question_types/quiz_question/quiz_question.theme.incView source
<?php
/*
* @file
* Themes for the quiz question module.
*/
/**
* Theme the question creation form
*
* @param $form
* Question creation form
*/
function theme_quiz_question_creation_form($variables) {
$form = $variables['form'];
module_load_include('inc', 'quiz', 'quiz.admin');
quiz_set_auto_title();
}
/**
* Theme the question navigation form(Back, Next, Skip buttons...)
*
* @param $form
* Form holding the navigation buttons
*/
function theme_quiz_question_navigation_form($variables) {
$form = $variables['form'];
if (!isset($form['#last'])) {
return drupal_render_children($form);
}
else {
$submit = drupal_render($form['submit']) . drupal_render($form['op']);
$to_return = '<div>' . drupal_render_children($form) . '</div>';
$to_return .= '<div><em>' . t('This is the last question. Press Finish to deliver your answers') . '</em></div>';
$to_return .= '<div>' . $submit . '</div>';
return $to_return;
}
}
Functions
Name | Description |
---|---|
theme_quiz_question_creation_form | Theme the question creation form |
theme_quiz_question_navigation_form | Theme the question navigation form(Back, Next, Skip buttons...) |