function quiz_jumper_form_submit in Quiz 7.6
Same name and namespace in other branches
- 7.5 quiz.module \quiz_jumper_form_submit()
File
- ./
quiz.module, line 3771 - quiz.module Main file for the Quiz module.
Code
function quiz_jumper_form_submit($form, &$form_state) {
$quiz = node_load(arg(1));
quiz_question_goto($quiz, $form_state['values']['question_number'] - 1);
$form_state['redirect'] = "node/{$quiz->nid}/take/" . $form_state['values']['question_number'];
}