quiz.views_default.inc in Quiz 8.5
Same filename and directory in other branches
- 8.6 includes/views/quiz.views_default.inc
- 8.4 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.4 includes/views/quiz.views_default.inc
- 7.5 includes/views/quiz.views_default.inc
Handles default views. Reads views from all the .view.inc files in the views/defaults directory.
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() {
$views = array();
$path = drupal_get_path('module', 'quiz') . '/includes/views/defaults';
$view_files = file_scan_directory($path, '/.*\\.view\\.inc/');
foreach ($view_files as $file) {
include DRUPAL_ROOT . '/' . $path . '/' . $file->filename;
$views[$view->name] = $view;
}
return $views;
}
Functions
Name | Description |
---|---|
quiz_views_default_views | Implements hook_views_default_views(). |