summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--panels_stylizer/panels_stylizer.module17
-rw-r--r--panels_stylizer/plugins/styles/stylizer.inc4
2 files changed, 19 insertions, 2 deletions
diff --git a/panels_stylizer/panels_stylizer.module b/panels_stylizer/panels_stylizer.module
index b3d92f6..f89f7be 100644
--- a/panels_stylizer/panels_stylizer.module
+++ b/panels_stylizer/panels_stylizer.module
@@ -135,6 +135,23 @@ function panels_stylizer_perm() {
}
/**
+ * Implementation of hook_ctools_plugin_api().
+ *
+ * Inform CTools that panels_stylizer's style plugins are up-to-date.
+ *
+ * @param string $owner
+ * The system name of the module owning the API about which information is
+ * being requested.
+ * @param string $api
+ * The name of the API about which information is being requested.
+ */
+function panels_stylizer_ctools_plugin_api($owner, $api) {
+ if ($owner == 'panels' && $api = 'styles') {
+ return array('version' => 2.0);
+ }
+}
+
+/**
* Implementation of hook_theme()
*/
function panels_stylizer_theme() {
diff --git a/panels_stylizer/plugins/styles/stylizer.inc b/panels_stylizer/plugins/styles/stylizer.inc
index 6029f4c..78e84b0 100644
--- a/panels_stylizer/plugins/styles/stylizer.inc
+++ b/panels_stylizer/plugins/styles/stylizer.inc
@@ -26,8 +26,8 @@ $plugin = array(
function theme_panels_stylizer_stylizer_style_render_region($display, $panel_id, $panes, $style_settings) {
$output = '';
- foreach ($panes as $pane_id => $content) {
- $output .= panels_render_pane($content, $display->content[$pane_id], $display);
+ foreach ($panes as $pane_id => $pane_output) {
+ $output .= $pane_output;
}
if ($style_settings['style'] == '$') {