Index: views_accordion_style_plugin.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_accordion/views_accordion_style_plugin.inc,v retrieving revision 1.1.2.12 diff -u -p -r1.1.2.12 views_accordion_style_plugin.inc --- views_accordion_style_plugin.inc 20 Oct 2009 20:09:09 -0000 1.1.2.12 +++ views_accordion_style_plugin.inc 3 Nov 2009 11:05:07 -0000 @@ -128,7 +128,7 @@ class views_accordion_style_plugin exten * Render the display in this style. */ function render() { - //dpm($this->display->handler->get_option('fields')); + // this part is copied from (and should be exactly as) views_plugin_style render() if ($this->uses_row_plugin() && empty($this->row_plugin)) { vpr('views_plugin_style_default: Missing row plugin'); return; @@ -140,19 +140,25 @@ class views_accordion_style_plugin exten // Render each group separately and concatenate. Plugins may override this // method if they wish some other way of handling grouping. $output = ''; + $this->view->row_index = 0; foreach ($sets as $title => $records) { if ($this->uses_row_plugin()) { $rows = array(); foreach ($records as $label => $row) { $rows[] = $this->row_plugin->render($row); + $this->view->row_index++; } } else { $rows = $records; } + $output .= theme($this->theme_functions(), $this->view, $this->options, $rows, $title); } + unset($this->view->row_index); + // Start of views_accordion custom render + // dpm($this->display->handler->get_option('fields')); // Preparing the js variables and adding the js to our display // we do it here so we dont have it run once every group drupal_add_js(drupal_get_path('module', 'views_accordion') .'/views-accordion.js');