Same name in other branches
- 7.x-3.x quicktabs.admin.inc \_quicktabs_get_views_displays()
- 8.x-1.x quicktabs.admin.inc \_quicktabs_get_views_displays()
Helper function to get all view displays.
1 call to _quicktabs_get_views_displays()
- _quicktabs_form in includes/
admin.inc
File
-
includes/
admin.inc, line 671
Code
function _quicktabs_get_views_displays($view_name) {
$displays = array();
if (empty($view_name)) {
// No view.
return $displays;
}
$views = views_get_all_views();
$view = $views[$view_name];
if (empty($view->display)) {
// This view is broken.
return $displays;
}
foreach ($view->display as $id => $display) {
$displays[$id] = $id . ': ' . $display->display_title;
}
return $displays;
}