You are here

function finder_ui_views_displays in Finder 7.2

Get an array of content types for use in select forms.

1 call to finder_ui_views_displays()
finder_ui_element in modules/finder_ui/includes/element.inc
Finder UI element.

File

modules/finder_ui/includes/common.inc, line 129
common.inc

Code

function finder_ui_views_displays($view_name) {
  $options = array();
  $view = views_get_view($view_name);
  if ($view) {
    foreach ($view->display as $key => $display) {
      if ($key != 'default') {
        $options[$key] = finder_ui_views_title($view, $view_name, $key, TRUE);
      }
    }
  }
  return $options;
}