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 @@ + +