function views_include_default_views in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 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 651 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_include_default_views() {
static $finished = FALSE;
// Ensure this only gets run once.
if ($finished) {
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();
_views_include_default_views();
$finished = TRUE;
}