From c3604701c1e2be4baa9d7f8b9f4ad9833b2fd7a7 Mon Sep 17 00:00:00 2001 From: wawax Date: Sun, 19 Apr 2009 19:40:56 +0000 Subject: [PATCH] Add assign_to_ticket hook management git-svn-id: https://forge.glpi-project.org/svn/example/trunk@75 349b9182-4a13-0410-896f-e5e9767dd1b3 --- hook.php | 9 +++++++++ setup.php | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/hook.php b/hook.php index 846047a..5caabf3 100644 --- a/hook.php +++ b/hook.php @@ -741,5 +741,14 @@ function plugin_example_uninstall(){ return true; } +function plugin_example_AssignToTicket($types) +{ + $types[PLUGIN_EXAMPLE_TYPE] = "Example"; + return $types; +} +function plugin_example_AssignToTicketList() +{ + +} ?> diff --git a/setup.php b/setup.php index 28d7d4d..8c2f4e7 100755 --- a/setup.php +++ b/setup.php @@ -47,7 +47,9 @@ function plugin_init_example() { 'deleted_tables' => false, 'template_tables' => false, 'specif_entities_tables' => false, - 'recursive_type' => false + 'recursive_type' => false, + //'linkuser_types' => true, + //'linkgroup_types' => true )); // Display a menu entry ? @@ -111,6 +113,8 @@ function plugin_init_example() { // Massive Action definition $PLUGIN_HOOKS['use_massive_action']['example']=1; + $PLUGIN_HOOKS['assign_to_ticket']['example']=1; + // Add specific files to add to the header : javascript or css $PLUGIN_HOOKS['add_javascript']['example']="example.js"; $PLUGIN_HOOKS['add_css']['example']="example.css";