You are here

function quiz_jumper_form in Quiz 7.6

Same name and namespace in other branches
  1. 7.5 quiz.module \quiz_jumper_form()
1 string reference to 'quiz_jumper_form'
theme_quiz_progress in ./quiz.pages.inc
Theme a progress indicator for use during a quiz.

File

./quiz.module, line 3757
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' => $current,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Jump'),
    '#attributes' => array(
      'class' => array(
        'js-hide',
      ),
    ),
  );
  return $form;
}