1 views.module | views_get_enabled_views() |
Returns an array of all enabled views, as fully loaded $view objects.
File
- core/
modules/ views/ views.module, line 1356 - Primarily Backdrop 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');
}