You are here

statspro.views_default.inc in Statistics Pro 6.2

Same filename and directory in other branches
  1. 6 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

Namesort descending Description
statspro_views_default_views Declare all the .view files in the views subdir that end in .view.