mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
new hook 'post_init', see #2610
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@153 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
@ -48,8 +48,8 @@ function plugin_init_example() {
|
||||
|
||||
Plugin::registerClass('PluginExampleExample',
|
||||
array('notificationtemplates_types' => true));
|
||||
|
||||
Plugin::registerClass('PluginExampleRuleTestCollection',
|
||||
|
||||
Plugin::registerClass('PluginExampleRuleTestCollection',
|
||||
array('rulecollections_types' => true));
|
||||
|
||||
// Display a menu entry ?
|
||||
@ -146,6 +146,8 @@ function plugin_init_example() {
|
||||
// Stats
|
||||
$PLUGIN_HOOKS['stats']['example'] = array('stat.php' => 'New stat',
|
||||
'stat.php?other' => 'New stats 2',);
|
||||
|
||||
$PLUGIN_HOOKS['post_init']['example'] = 'plugin_example_postinit';
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user