You are here

function panels_views_all_views_title in Panels 6.2

Returns the administrative title for a type.

1 string reference to 'panels_views_all_views_title'
panels_views_panels_content_types in panels_views/panels_views.module
Implementation of hook_panels_content_types()

File

panels_views/panels_views.module, line 294
panels_views.module

Code

function panels_views_all_views_title($subtype, $conf) {
  list($name, $display) = explode('-', $subtype);
  $view = views_get_view($name);
  if (empty($view)) {
    return t('Deleted/missing view @view', array(
      '@view' => $name,
    ));
  }
  if (empty($view->display[$display])) {
    return t('Deleted/missing view @view', array(
      '@view' => $name,
    ));
  }
  return t('@name: @display', array(
    '@name' => $view->name,
    '@display' => $view->display[$display]->display_title,
  ));
}