Same name in other branches
  1. 7.x-2.x includes/admin.inc \quicktabs_get_views()
  2. 7.x-3.x quicktabs.admin.inc \quicktabs_get_views()

Helper function to get all views.

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

File

./quicktabs.admin.inc, line 500

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;
}