You are here

function panels_get_pane_title in Panels 6.2

Same name and namespace in other branches
  1. 5.2 includes/plugins.inc \panels_get_pane_title()
  2. 6.3 includes/plugins.inc \panels_get_pane_title()
  3. 7.3 includes/plugins.inc \panels_get_pane_title()

Get the title of a pane.

Parameters

$pane: The $pane object.

Related topics

4 calls to panels_get_pane_title()
panels_common_get_layout_information in includes/common.inc
The layout information fieldset displayed at admin/edit/panel-%implementation%/add/%layout%.
panels_show_pane in includes/display-edit.inc
theme_panels_common_content_list in includes/common.inc
Create a visible list of content in a display. Note that the contexts must be pre-loaded.
_panels_render_preview_pane_disabled in includes/display-edit.inc
Provide filler content for dynamic pane previews in the editor, as they're just a bad idea to have anyway, and can also cause infinite recursion loops that render the editor inaccessible in some cases.

File

includes/plugins.inc, line 744
plugins.inc

Code

function panels_get_pane_title(&$pane, $context = array(), $incoming_content = NULL) {
  if (empty($pane->context)) {
    $pane->context = panels_pane_select_context($pane, $context);
    if ($pane->context === FALSE) {
      return t('Does not meet context requirements');
    }
  }
  return panels_ct_get_title($pane->type, $pane->subtype, $pane->configuration, $pane->context, $incoming_content);
}