function finder_ui_views_title in Finder 7.2
Get the display title for this view display.
Parameters
$view: The view object.
$view_name: The name of the view.
$display_key: The name of the display to use.
$append_id: Boolean indicating whether to append a unique id.
Return value
The display title of this views display.
3 calls to finder_ui_views_title()
- finder_ui_info in modules/
finder_ui/ includes/ common.inc - Build the render array for the finder info output.
- finder_ui_views in modules/
finder_ui/ includes/ common.inc - Get an array of views.
- finder_ui_views_displays in modules/
finder_ui/ includes/ common.inc - Get an array of content types for use in select forms.
File
- modules/
finder_ui/ includes/ common.inc, line 109 - common.inc
Code
function finder_ui_views_title($view, $view_name, $display_key, $append_id) {
if (!$view) {
return t('Missing view');
}
$view
->set_display($display_key);
$display_title = $view
->get_title();
if (!$display_title) {
// No title, we have to construct a title.
$display_title = drupal_ucfirst($view_name) . ' ' . drupal_strtolower($view->display[$display_key]->display_title);
}
if ($append_id) {
// Append ID for disambiguation in forms (views displays can have the same title).
$display_title .= ' [' . $view_name . ':' . $display_key . ']';
}
return $display_title;
}