mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
[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:
@ -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");
|
||||
|
Reference in New Issue
Block a user