[Fusionforge-commits] r7277 - trunk/gforge/www/stats

Julien HEYMAN jheyman at libremir.placard.fr.eu.org
Thu Apr 2 14:23:43 CEST 2009


Author: jheyman
Date: 2009-04-02 14:23:43 +0200 (Thu, 02 Apr 2009)
New Revision: 7277

Modified:
   trunk/gforge/www/stats/site_stats_utils.php
Log:
Add hooks in projects stats

Modified: trunk/gforge/www/stats/site_stats_utils.php
===================================================================
--- trunk/gforge/www/stats/site_stats_utils.php	2009-04-02 09:19:30 UTC (rev 7276)
+++ trunk/gforge/www/stats/site_stats_utils.php	2009-04-02 12:23:43 UTC (rev 7277)
@@ -276,6 +276,7 @@
 			<?php if ($GLOBALS['sys_use_scm']) { ?>
 			<td colspan="3"><strong><?php echo _('CVS'); ?></strong></td>
 			<?php } ?>
+			<?php plugin_hook('stats_header_table'); ?>
 		</tr>
 
 		<?php
@@ -317,6 +318,7 @@
 			<td><a href="<?php echo $uri_string; ?>cvs_commits"><?php echo _('Commits'); ?></a></td>
 			<td><a href="<?php echo $uri_string; ?>cvs_adds"><?php echo _('Adds'); ?></a></td>
 			<?php } ?>
+			<?php plugin_hook('stats_detail_header_table'); ?>
 			</tr>
 		<?php
 	
@@ -348,6 +350,9 @@
 				. '<td>&nbsp;&nbsp;' . number_format( $row["cvs_commits"],0 ) . '</td>'
 				. '<td>&nbsp;&nbsp;' . number_format( $row["cvs_adds"],0 ) . '</td>';
 			}
+			$hook_params = array();
+			$hook_params['group_id'] = $row["group_id"];
+			plugin_hook('stats_data',$hook_params);
 			print '</tr>' . "\n";
 			$i++;
 			$sum = stats_util_sum_array( $sum, $row );




More information about the Fusionforge-commits mailing list