quiz.views_default.inc in Quiz 7.4
Same filename and directory in other branches
- 8.6 includes/views/quiz.views_default.inc
- 8.4 includes/views/quiz.views_default.inc
- 8.5 includes/views/quiz.views_default.inc
- 6.6 includes/views/quiz.views_default.inc
- 6.3 includes/views/quiz.views_default.inc
- 6.4 includes/views/quiz.views_default.inc
- 6.5 includes/views/quiz.views_default.inc
- 7.6 includes/views/quiz.views_default.inc
- 7 includes/views/quiz.views_default.inc
- 7.5 includes/views/quiz.views_default.inc
File
includes/views/quiz.views_default.incView 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
Name | Description |
---|---|
quiz_views_default_views | Implements hook_views_default_views(). |