From 62854932c0025d384143a39c48226be4cab7261c Mon Sep 17 00:00:00 2001 From: wawax Date: Sat, 25 Oct 2008 18:13:31 +0000 Subject: [PATCH] [example] Add hook for statistics git-svn-id: https://forge.glpi-project.org/svn/example/trunk@57 349b9182-4a13-0410-896f-e5e9767dd1b3 --- setup.php | 2 ++ stat.php | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 stat.php diff --git a/setup.php b/setup.php index f4456d3..2c184c3 100755 --- a/setup.php +++ b/setup.php @@ -103,6 +103,8 @@ function plugin_init_example() { // Reports $PLUGIN_HOOKS['reports']['example'] = array('report.php'=>'New Report', 'report.php?other'=>'New Report 2',); + // Stats + $PLUGIN_HOOKS['stats']['example'] = array('stat.php'=>'New stat', 'stat.php?other'=>'New stats 2',); // Params : plugin name - string type - ID - class - table - form page - Type name pluginNewType('example',"PLUGIN_EXAMPLE_TYPE",1001,"pluginExample","glpi_plugin_example","example.form.php","Example Type"); diff --git a/stat.php b/stat.php new file mode 100644 index 0000000..70245fd --- /dev/null +++ b/stat.php @@ -0,0 +1,50 @@ + +