statspro.views_default.inc in Statistics Pro 6.2
Same filename and directory in other branches
Default views for Statistics Pro module.
File
views/statspro.views_default.incView source
<?php
/**
* @file
* Default views for Statistics Pro module.
*
*/
/**
* Declare all the .view files in the views subdir that end in .view.
*/
function statspro_views_default_views() {
$files = file_scan_directory(drupal_get_path('module', 'statspro') . '/views/defaults', '.view');
foreach ($files as $absolute => $file) {
require $absolute;
$views[$view->name] = $view;
}
return $views;
}
Functions
Name | Description |
---|---|
statspro_views_default_views | Declare all the .view files in the views subdir that end in .view. |