diff --git a/panels.module b/panels.module index e4570bc..7f07cbc 100644 --- a/panels.module +++ b/panels.module @@ -1331,8 +1331,14 @@ function template_preprocess_panels_pane(&$vars) { $vars['more'] = l($content->more['title'], $content->more['href'], $content->more); } + // Save the additional data from the content object for later use by themers. + $vars['content_context'] = clone $content; + // Remove duplicate content. We don't need it in 2 places. + if (isset($vars['content_context']->content)) { + unset($vars['content_context']->content); + } + // Set the pane content to the actual content. $vars['content'] = !empty($content->content) ? $content->content : ''; - } /**