}
/**
+ * 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() {
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'] == '$') {