Multiple redirect for plugins see #2635

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@154 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo 2011-02-03 16:48:45 +00:00
parent e9366fba35
commit da883239d5

View File

@ -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';