function tvi_get_views in Taxonomy Views Integrator 6
Same name and namespace in other branches
- 7 includes/tvi.admin.inc \tvi_get_views()
Gathers a listing of all views so that the admin may choose ANY view
Related topics
2 calls to tvi_get_views()
- tvi_get_view_displays in includes/
tvi.admin.inc - Gathers the available display options for the view operating on this term or vocabulary.
- tvi_taxonomy_admin_form in includes/
tvi.admin.inc - Form builder for the main TVI administration form.
File
- includes/
tvi.admin.inc, line 224 - TVI Administration Interface
Code
function tvi_get_views($return_object = FALSE) {
$views = array();
foreach (views_get_all_views() as $view) {
if ($return_object) {
$views[$view->name] = $view;
}
else {
$views[$view->name] = $view->name;
}
}
return $views;
}