You are here

function course_quiz_course_handlers in Course 6

Same name and namespace in other branches
  1. 7.2 modules/course_quiz/course_quiz.module \course_quiz_course_handlers()
  2. 7 modules/course_quiz/course_quiz.module \course_quiz_course_handlers()

Implements hook_course_handlers().

File

modules/course_quiz/course_quiz.module, line 20

Code

function course_quiz_course_handlers() {
  return array(
    'object' => array(
      'quiz' => array(
        'name' => t('Quiz'),
        'class' => 'CourseObjectQuiz',
        'description' => t('A Quiz course object.'),
      ),
    ),
    'context' => array(
      'quiz' => array(
        'callback' => 'course_quiz_context',
      ),
    ),
  );
}