You are here

function views_get_enabled_views in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 views.module \views_get_enabled_views()

Returns an array of all enabled views, as fully loaded $view objects.

1 call to views_get_enabled_views()
views_plugin_list in ./views.module
Returns a list of plugins and metadata about them.

File

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

Code

function views_get_enabled_views() {
  $views = views_get_all_views();
  return array_filter($views, 'views_view_is_enabled');
}