function 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 1001
Code
function views_discover_default_views($reset = FALSE) {
static $cache = array();
if (empty($cache) || $reset) {
views_include('cache');
$cache = _views_discover_default_views($reset);
}
return $cache;
}