diff --git a/setup.php b/setup.php index 895a9c4..e2b0775 100755 --- a/setup.php +++ b/setup.php @@ -118,8 +118,13 @@ function plugin_init_example() { $PLUGIN_HOOKS['item_transfer']['example'] = 'plugin_item_transfer_example'; - //redirect appel http://localhost/glpi/index.php?redirect=plugin_example_2 (ID 2 du form) - $PLUGIN_HOOKS['redirect_page']['example'] = 'example.form.php'; + //redirect + // Simple redirect : http://localhost/glpi/index.php?redirect=plugin_example_2 (ID 2 du form) + // $PLUGIN_HOOKS['redirect_page']['example'] = 'example.form.php'; + // Multiple redirect : http://localhost/glpi/index.php?redirect=plugin_example_one_2 (ID 2 du form) + // Multiple redirect : http://localhost/glpi/index.php?redirect=plugin_example_two_2 (ID 2 du form) + $PLUGIN_HOOKS['redirect_page']['example']['one'] = 'example.form.php'; + $PLUGIN_HOOKS['redirect_page']['example']['two'] = 'example2.form.php'; //function to populate planning $PLUGIN_HOOKS['planning_populate']['example'] = 'plugin_planning_populate_example';