You are here

function views_include_default_views in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 views.module \views_include_default_views()

Load default views files on behalf of modules.

1 call to views_include_default_views()
_views_discover_default_views in includes/cache.inc
Scan all modules for default views and rebuild the default views cache.

File

./views.module, line 825
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_include_default_views($reset = FALSE) {
  static $finished = FALSE;

  // Ensure this only gets run once.
  if ($finished && !$reset) {
    return;
  }

  // Default views hooks may be in the normal handler file,
  // or in a separate views_default file at the discretion of
  // the module author.
  views_include_handlers($reset);
  _views_include_default_views($reset);
  $finished = TRUE;
}