You are here

quiz.views_default.inc in Quiz 7.4

File

includes/views/quiz.views_default.inc
View source
<?php

/*
 * @file
 * Handles default views.
 * Reads views from all the .view.inc files in the views/defaults directory.
 */

/**
 * Implements hook_views_default_views().
 */
function quiz_views_default_views() {
  $files = file_scan_directory(QUIZ_VIEWS_DIR . '/defaults', '/\\.inc/');
  $views = array();
  foreach ($files as $path => $file) {
    require DRUPAL_ROOT . '/' . $path;
    $views[$file->name] = $view;
  }
  return $views;
}

Functions