function theme_quiz_question_navigation_form in Quiz 7.4
Same name and namespace in other branches
- 8.4 question_types/quiz_question/quiz_question.theme.inc \theme_quiz_question_navigation_form()
- 6.4 question_types/quiz_question/quiz_question.theme.inc \theme_quiz_question_navigation_form()
- 7.6 question_types/quiz_question/quiz_question.theme.inc \theme_quiz_question_navigation_form()
- 7 question_types/quiz_question/quiz_question.theme.inc \theme_quiz_question_navigation_form()
- 7.5 question_types/quiz_question/quiz_question.theme.inc \theme_quiz_question_navigation_form()
Theme the question navigation form(Back, Next, Skip buttons...)
Parameters
$form: Form holding the navigation buttons
File
- question_types/
quiz_question/ quiz_question.theme.inc, line 26
Code
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;
}
}