function panels_tabs_panels_pane_content_alter in Panels Tabs 6
Same name and namespace in other branches
- 7.2 panels_tabs.module \panels_tabs_panels_pane_content_alter()
- 7 panels_tabs.module \panels_tabs_panels_pane_content_alter()
Implements hook_panels_pane_content_alter().
File
- ./
panels_tabs.module, line 72 - Definition of the 'tabs' panel style.
Code
function panels_tabs_panels_pane_content_alter($content, $pane, $args, $context) {
// Don't run if we are using legacy mode
if (panels_tabs_style_version() == 2) {
if (!empty($pane->region_style) && $pane->region_style == 'tabs' && isset($content->title)) {
$pane->tab_title = $content->title;
// Set the original title in case it is required to provide the panel title
if (!empty($content->title) && $content->title != '<none>') {
$content->original_title = $content->title;
}
unset($content->title);
}
}
}