function views_discover_default_views

2.x views.module views_discover_default_views()

Scan all modules for default views and rebuild the default views cache.

Return value

An associative array of all known default views.

3 calls to views_discover_default_views()
views_get_all_views in ./views.module
Return an array of all views as fully loaded $view objects.
views_get_default_view in ./views.module
Get a view from the default views defined by modules.
views_ui_autocomplete_tag in includes/admin.inc
Page callback for views tag autocomplete

File

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

Code

function views_discover_default_views() {
  static $cache = array();

  if (empty($cache)) {
    views_include('cache');
    $cache = _views_discover_default_views();
  }
  return $cache;
}