From da883239d57047842e565d8977bdd9381e327c66 Mon Sep 17 00:00:00 2001 From: moyooo Date: Thu, 3 Feb 2011 16:48:45 +0000 Subject: [PATCH] Multiple redirect for plugins see #2635 git-svn-id: https://forge.glpi-project.org/svn/example/trunk@154 349b9182-4a13-0410-896f-e5e9767dd1b3 --- setup.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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';