panel_settings as $key => $values) { if ($key == 'style_settings') { continue; } if (!empty($values['style']) && $values['style'] == 'table' && $pane->panel == $key && !empty($content->title)) { // Capture the title. panels_style_table_pane_titles($display->did, $pane->pid, $content->title); // Remove it form the pane. $content->title = ''; } } } /** * Get or set pane title. * * @param $did * Panels display ID. * @param $pid * Panels pane ID. * @param $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 * Unsanitized pane title, or NULL if doesn't exist. */ function panels_style_table_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; }