You are here

function panels_tabs_pane_titles in Panels Tabs 7

Same name and namespace in other branches
  1. 7.2 panels_tabs.module \panels_tabs_pane_titles()

Get or set pane title.

Parameters

$did: Panels display ID.

$pid: Panels pane ID.

$title: Optional; Panles pane title to set, or if empty then the function will return the captured title based on the display ID and pane ID properties.

Return value

Unsanitized pane title, or NULL if doesn't exist.

2 calls to panels_tabs_pane_titles()
panels_tabs_panels_pane_content_alter in ./panels_tabs.module
Implements hook_panels_pane_content_alter().
theme_panels_tabs_style_render_region in plugins/styles/tabs.inc
Render callback.

File

./panels_tabs.module, line 53
Show panel panes in a region as tabs.

Code

function panels_tabs_pane_titles($did = NULL, $pid = NULL, $title = NULL) {
  $cache =& drupal_static(__FUNCTION__, array());
  if (!isset($title)) {
    return isset($cache[$did][$pid]) ? $cache[$did][$pid] : NULL;
  }
  $cache[$did][$pid] = $title;
}