function _quicktabs_get_views_displays in Quick Tabs 7.2
Same name and namespace in other branches
- 6.3 includes/admin.inc \_quicktabs_get_views_displays()
- 6 quicktabs.module \_quicktabs_get_views_displays()
- 6.2 includes/admin.inc \_quicktabs_get_views_displays()
- 7.3 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 - Provides the Quick Tabs' administrative interface.
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;
}