[example] Add hook for statistics

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@57 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
wawax
2008-10-25 18:13:31 +00:00
parent 95d5141ef4
commit 62854932c0
2 changed files with 52 additions and 0 deletions

View File

@ -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");