You are here

function views_get_all_views in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 6.3 views.module \views_get_all_views()
  2. 6.2 views.module \views_get_all_views()
  3. 7.3 views.module \views_get_all_views()

Return an array of all views as fully loaded $view objects.

@todo Figure out whether you expect to return config entities or view executables.

Parameters

$reset: If TRUE, reset the static cache forcing views to be reloaded.

9 calls to views_get_all_views()
GroupwiseMax::buildOptionsForm in lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php
Extends the relationship's basic options, allowing the user to pick a sort and an order for it.
ModuleTest::testLoadFunctions in lib/Drupal/views/Tests/ModuleTest.php
Tests the load wrapper/helper functions.
views_block_info in ./views.module
Implement hook_block_info().
views_get_applicable_views in ./views.module
Return a list of all views and display IDs that have a particular setting in their display's plugin settings.
views_get_disabled_views in ./views.module
Returns an array of all disabled views, as fully loaded $view objects.

... See full list

File

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

Code

function views_get_all_views($reset = FALSE) {
  return entity_get_controller('view')
    ->load();
}