You are here

function views_view_is_enabled in Views (for Drupal 7) 7.3

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

Returns TRUE if a view is enabled, FALSE otherwise.

1 string reference to 'views_view_is_enabled'
views_get_enabled_views in ./views.module
Returns an array of all enabled views, as fully loaded $view objects.

File

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

Code

function views_view_is_enabled($view) {
  return empty($view->disabled);
}