You are here

function _quiz_is_last_question in Quiz 7

Same name and namespace in other branches
  1. 8.4 quiz.module \_quiz_is_last_question()
  2. 6.4 quiz.module \_quiz_is_last_question()

Check if this is the last question of the quiz

1 call to _quiz_is_last_question()
quiz_question_answering_form in question_types/quiz_question/quiz_question.module
Get the form to show to the quiz taker.

File

./quiz.module, line 4232
Quiz Module

Code

function _quiz_is_last_question() {
  return count($_SESSION['quiz_' . intval(arg(1))]['quiz_questions']) < 2;
}