You are here

function quiz_views_handlers in Quiz 6.5

Same name and namespace in other branches
  1. 8.4 includes/views/quiz.views.inc \quiz_views_handlers()
  2. 6.6 includes/views/quiz.views.inc \quiz_views_handlers()
  3. 6.3 includes/views/quiz.views.inc \quiz_views_handlers()
  4. 6.4 includes/views/quiz.views.inc \quiz_views_handlers()
  5. 7 includes/views/quiz.views.inc \quiz_views_handlers()
  6. 7.4 includes/views/quiz.views.inc \quiz_views_handlers()

@file This file provides metadata to the Views 2 API for views integration.

File

includes/views/quiz.views.inc, line 8
This file provides metadata to the Views 2 API for views integration.

Code

function quiz_views_handlers() {
  return array(
    'info' => array(
      'path' => QUIZ_VIEWS_DIR . '/handlers',
    ),
    'handlers' => array(
      // Fields
      'quiz_views_handler_field_takes' => array(
        'parent' => 'views_handler_field',
      ),
      'quiz_views_handler_field_question_status' => array(
        'parent' => 'views_handler_field',
      ),
      'quiz_views_handler_field_user_quiz_state' => array(
        'parent' => 'views_handler_field',
      ),
      'quiz_views_handler_field_score_aggregate' => array(
        'parent' => 'views_handler_field_numeric',
      ),
      'quiz_views_handler_field_number_questions' => array(
        'parent' => 'views_handler_field',
      ),
      // Filters
      'quiz_views_handler_filter_question_status' => array(
        'parent' => 'views_handler_filter_in_operator',
      ),
      'quiz_views_handler_filter_quiz_nid' => array(
        'parent' => 'views_handler_filter',
      ),
      'quiz_views_handler_filter_user_quiz_state' => array(
        'parent' => 'views_handler_filter',
      ),
      'quiz_views_handler_filter_user_nullable' => array(
        'parent' => 'views_handler_filter',
      ),
      // Relationships
      'quiz_views_handler_relationship_vid_from_nid' => array(
        'parent' => 'views_handler_relationship',
      ),
      // Arguments
      'quiz_views_handler_argument_quiz_nid' => array(
        'parent' => 'views_handler_argument_numeric',
      ),
      'quiz_views_handler_argument_user_uid_nullable' => array(
        'parent' => 'views_handler_argument_user_uid',
      ),
    ),
  );
}