You are here

statspro.views_default.inc in Statistics Pro 6

Same filename and directory in other branches
  1. 6.2 views/statspro.views_default.inc

Default views for statistics pro module

File

views/statspro.views_default.inc
View 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