You are here

wp_blog.views_default.inc in WP Blog - a WordPress-style blogging module. 7

Default views for the WP blog module.

File

wp_blog.views_default.inc
View source
<?php

/**
 * @file
 * Default views for the WP blog module.
 */

/**
 * Implements hook_views_default_views().
 */
function wp_blog_views_default_views() {
  $views = array();

  // Parse each .view file in the views folder.
  $path = dirname(__FILE__) . '/views';
  foreach (glob("{$path}/*.view") as $file) {
    include $file;
    $views[$view->name] = $view;
  }
  return $views;
}

Functions