mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
[example] mis à jour avec hook redirect + hook helpdesk
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@12 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
@ -41,6 +41,7 @@ function plugin_init_example() {
|
||||
|
||||
// Display a menu entry ?
|
||||
$PLUGIN_HOOKS['menu_entry']['example'] = true;
|
||||
$PLUGIN_HOOKS["helpdesk_menu_entry"]['example'] = true;
|
||||
// Setup/Update functions
|
||||
$PLUGIN_HOOKS['setup']['example'] = "plugin_setup_example";
|
||||
// Config function
|
||||
@ -60,6 +61,8 @@ function plugin_init_example() {
|
||||
$PLUGIN_HOOKS['central_action']['example'] = 'plugin_central_action_example';
|
||||
// Cron action
|
||||
$PLUGIN_HOOKS['cron']['example'] = DAY_TIMESTAMP;
|
||||
//redirect
|
||||
$PLUGIN_HOOKS['redirect_page']['example']="example.form.php";
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user