function quiz_jumper_form in Quiz 7.5
Same name and namespace in other branches
- 7.6 quiz.module \quiz_jumper_form()
1 string reference to 'quiz_jumper_form'
- theme_quiz_progress in ./
quiz.theme.inc - Theme a progress indicator for use during a quiz.
File
- ./
quiz.module, line 3640 - quiz.module Main file for the Quiz module.
Code
function quiz_jumper_form($form, $form_state, $questions, $current) {
$form['question_number'] = array(
'#type' => 'select',
'#options' => $questions,
'#default_value' => array_search($current, $questions),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Jump'),
'#attributes' => array(
'class' => array(
'js-hide',
),
),
);
return $form;
}