function _quicktabs_get_views_displays in Quick Tabs 6
Same name and namespace in other branches
- 6.3 includes/admin.inc \_quicktabs_get_views_displays()
- 6.2 includes/admin.inc \_quicktabs_get_views_displays()
- 7.3 quicktabs.admin.inc \_quicktabs_get_views_displays()
- 7.2 includes/admin.inc \_quicktabs_get_views_displays()
1 call to _quicktabs_get_views_displays()
- _quicktabs_form in ./
quicktabs.module - build the form elements for each tab
File
- ./
quicktabs.module, line 886
Code
function _quicktabs_get_views_displays($view) {
$displays = array();
$result = db_query("SELECT d.id FROM {views_view} v INNER JOIN {views_display} d ON v.vid = d.vid WHERE v.name = '%s' ORDER BY position ASC", $view);
while ($row = db_fetch_object($result)) {
$displays[$row->id] = $row->id;
}
if (empty($displays)) {
$displays = _quicktabs_get_default_view_displays($view);
}
return $displays;
}