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

Helper function to get all views.

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

Fichier

includes/admin.inc, line 653

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