function panels_views_legacy_title in Panels 5.2
Returns the administrative title for a type.
1 string reference to 'panels_views_legacy_title'
- panels_views_legacy_panels_content_types in panels_views_legacy/
panels_views_legacy.module - Implementation of hook_panels_content_types()
File
- panels_views_legacy/
panels_views_legacy.module, line 331 - panels_views_legacy.module
Code
function panels_views_legacy_title($conf) {
$view = views_get_view($conf['view']);
if (empty($view)) {
return t('Deleted/missing view @view', array(
'@view' => $conf['view'],
));
}
$title = views_get_title($view, 'admin');
return $title ? $title : $view->name;
}