You are here

quiz.views_default.inc in Quiz 6.6

File

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

/*
 * @file
 * Handles Default views.
 * // Declare all the .view files in the views subdir that end in .view
 */
function quiz_views_default_views() {
  $files = file_scan_directory(QUIZ_VIEWS_DIR . '/defaults', '.view');
  $views = array();
  foreach ($files as $path => $file) {
    require $path;
    $views[$file->name] = $view;
  }
  return $views;
}

Functions