function brilliant_gallery_views_default_views in Brilliant Gallery 7.2
Implements hook_views_default_views(). Imports views from the /views directory; see http://bonify.io/blog/2014/09/how-export-your-views-code-and-why
File
- ./
brilliant_gallery.module, line 30
Code
function brilliant_gallery_views_default_views() {
$path = __DIR__ . '/views/default/*.view.inc';
$views = array();
foreach (glob($path) as $views_filename) {
$view = FALSE;
require_once $views_filename;
$views[$view->name] = $view;
// $view exists in the included file.
unset($view);
}
return $views;
}