function views_content_views_content_type_admin_title in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 views_content/plugins/content_types/views.inc \views_content_views_content_type_admin_title()
Returns the administrative title for a type.
File
- views_content/
plugins/ content_types/ views.inc, line 412
Code
function views_content_views_content_type_admin_title($subtype, $conf) {
$view = _views_content_views_update_conf($conf, $subtype);
if (!is_object($view)) {
return t('Deleted/missing view @view', array(
'@view' => $view,
));
}
$title = $view->display[$view->current_display]->display_title;
return t('View: @name', array(
'@name' => $view->name . '-' . $title,
));
}