function juicebox_views_test_views_default_views in Juicebox HTML5 Responsive Image Galleries 7.2
Implements hook_views_default_views().
File
- tests/
views/ juicebox_views_test.module, line 22 - This is a helper module to implement some hooks during automated testing.
Code
function juicebox_views_test_views_default_views() {
// Traverse the files in the default_views subdir and load any view dfinitions
// found there.
$files = file_scan_directory(drupal_get_path('module', 'juicebox_views_test') . '/default_views', '/\\.view/');
foreach ($files as $absolute => $file) {
require $absolute;
if (isset($view)) {
$views[$file->name] = $view;
}
}
return $views;
}