You are here

function _quiz_is_taking_context in Quiz 7.6

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 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.

File

./quiz.module, line 3237
quiz.module Main file for the Quiz module.

Code

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