You are here

function course_quiz_context in Course 6

Course context handler callback.

1 string reference to 'course_quiz_context'
course_quiz_course_handlers in modules/course_quiz/course_quiz.module
Implements hook_course_handlers().

File

modules/course_quiz/course_quiz.module, line 6

Code

function course_quiz_context() {
  $node = node_load(arg(1));
  if (isset($node->nid) && $node->type == 'quiz') {
    return array(
      'object_type' => 'quiz',
      'instance' => $node->nid,
    );
  }
}