You are here

function _quiz_is_taking_context in Quiz 7

Same name and namespace in other branches
  1. 8.4 quiz.module \_quiz_is_taking_context()
  2. 6.6 quiz.module \_quiz_is_taking_context()
  3. 6.4 quiz.module \_quiz_is_taking_context()
  4. 7.6 quiz.module \_quiz_is_taking_context()
  5. 7.4 quiz.module \_quiz_is_taking_context()

Tells whether a question node is being viewed inside/outside of quiz.

Return value

Boolean.

1 call to _quiz_is_taking_context()
quiz_question_view in question_types/quiz_question/quiz_question.module

File

./quiz.module, line 3749
Quiz Module

Code

function _quiz_is_taking_context() {
  return arg(2) == 'take';
}