function quiz_views_default_views in Quiz 6.6
Same name and namespace in other branches
- 8.6 includes/views/quiz.views_default.inc \quiz_views_default_views()
- 8.4 includes/views/quiz.views_default.inc \quiz_views_default_views()
- 8.5 includes/views/quiz.views_default.inc \quiz_views_default_views()
- 5.2 quiz_views.module \quiz_views_default_views()
- 6.3 includes/views/quiz.views_default.inc \quiz_views_default_views()
- 6.4 includes/views/quiz.views_default.inc \quiz_views_default_views()
- 6.5 includes/views/quiz.views_default.inc \quiz_views_default_views()
- 7.6 includes/views/quiz.views_default.inc \quiz_views_default_views()
- 7 includes/views/quiz.views_default.inc \quiz_views_default_views()
- 7.4 includes/views/quiz.views_default.inc \quiz_views_default_views()
- 7.5 includes/views/quiz.views_default.inc \quiz_views_default_views()
File
- includes/
views/ quiz.views_default.inc, line 9
Code
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;
}