You are here

function quicktabs_get_views in Quick Tabs 7.3

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.2 includes/admin.inc \quicktabs_get_views()

Helper function to get all views.

1 call to quicktabs_get_views()
QuickViewContent::optionsForm in plugins/QuickViewContent.inc
Method for returning the form elements to display for this tab type on the admin form.

File

./quicktabs.admin.inc, line 587
Provides the Quicktabs 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;
}