You are here

function quicktabs_get_views in Quick Tabs 7.2

Same name and namespace in other branches
  1. 5 quicktabs.module \quicktabs_get_views()
  2. 6.3 includes/admin.inc \quicktabs_get_views()
  3. 6 quicktabs.module \quicktabs_get_views()
  4. 6.2 includes/admin.inc \quicktabs_get_views()
  5. 7.3 quicktabs.admin.inc \quicktabs_get_views()

Helper function to get all views.

1 call to quicktabs_get_views()
_quicktabs_form in includes/admin.inc

File

includes/admin.inc, line 653
Provides the Quick Tabs' administrative interface.

Code

function quicktabs_get_views() {
  $enabled_views = array();
  $views = views_get_all_views();
  foreach ($views as $view) {

    // Skip disabled views.
    if (!empty($views[$view->name]->disabled)) {
      continue;
    }
    $enabled_views[$view->name] = $view->name;
  }
  ksort($enabled_views);
  return $enabled_views;
}