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";