You are here

function panels_views_panes_title in Panels 6.2

1 string reference to 'panels_views_panes_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 608
panels_views.module

Code

function panels_views_panes_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,
    ));
  }
  $view
    ->set_display($display);
  $title = $view->display_handler
    ->get_option('pane_title');
  return check_plain($title ? $title : $view->name);
}