function _quiz_is_taking_context in Quiz 6.6
Same name and namespace in other branches
- 8.4 quiz.module \_quiz_is_taking_context()
- 6.4 quiz.module \_quiz_is_taking_context()
- 7.6 quiz.module \_quiz_is_taking_context()
- 7 quiz.module \_quiz_is_taking_context()
- 7.4 quiz.module \_quiz_is_taking_context()
6 calls to _quiz_is_taking_context()
- ChoiceQuestion::getQuestionForm in question_types/
choice/ choice.classes.inc - Generates the question form.
- MatchingQuestion::getQuestionForm in question_types/
matching/ matching.classes.inc - Get the form that will be displayed to the test-taking user.
- multichoice_render_question_form in question_types/
multichoice/ multichoice.module - Print question to screen.
- quiz_question_question_form in question_types/
quiz_question/ quiz_question.module - Get the form to show to the user.
- ShortAnswerQuestion::getQuestionForm in question_types/
short_answer/ short_answer.classes.inc - Get the form that will be displayed to the test-taking user.
File
- ./
quiz.module, line 2787 - Quiz Module
Code
function _quiz_is_taking_context() {
$display_object = menu_get_object();
// in the AJAX Quiz there is no display object
if (empty($display_object)) {
return TRUE;
}
if ($display_object->type == 'quiz') {
return TRUE;
}
// otherwise not quiz-taking
return FALSE;
}