comparison theme.inc @ 1:cedf71edacf5

Views Calc: Total du group dans le cas d'un group by
author Franck Deroche <franck@defr.org>
date Thu, 06 Aug 2009 19:09:42 +0200
parents 0651c02e6ed7
children
comparison
equal deleted inserted replaced
0:0651c02e6ed7 1:cedf71edacf5
80 // so that it can get rebuilt. 80 // so that it can get rebuilt.
81 $result = $vars['rows']; 81 $result = $vars['rows'];
82 $vars['rows'] = array(); 82 $vars['rows'] = array();
83 $totals = $view->totals; 83 $totals = $view->totals;
84 $sub_totals = $view->sub_totals; 84 $sub_totals = $view->sub_totals;
85 if ($vars['title'] && $view->group_totals[$vars['title']]) {
86 $totals = $view->group_totals[$vars['title']];
87 }
85 88
86 $options = $view->style_plugin->options; 89 $options = $view->style_plugin->options;
87 $handler = $view->style_plugin; 90 $handler = $view->style_plugin;
88 $vars['options'] = $options; 91 $vars['options'] = $options;
89 $hide_details = $options['detailed_values']; 92 $hide_details = $options['detailed_values'];