mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
Add assign_to_ticket hook management
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@75 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
5d9a90f281
commit
c3604701c1
9
hook.php
9
hook.php
@ -741,5 +741,14 @@ function plugin_example_uninstall(){
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function plugin_example_AssignToTicket($types)
|
||||||
|
{
|
||||||
|
$types[PLUGIN_EXAMPLE_TYPE] = "Example";
|
||||||
|
return $types;
|
||||||
|
}
|
||||||
|
|
||||||
|
function plugin_example_AssignToTicketList()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -47,7 +47,9 @@ function plugin_init_example() {
|
|||||||
'deleted_tables' => false,
|
'deleted_tables' => false,
|
||||||
'template_tables' => false,
|
'template_tables' => false,
|
||||||
'specif_entities_tables' => false,
|
'specif_entities_tables' => false,
|
||||||
'recursive_type' => false
|
'recursive_type' => false,
|
||||||
|
//'linkuser_types' => true,
|
||||||
|
//'linkgroup_types' => true
|
||||||
));
|
));
|
||||||
|
|
||||||
// Display a menu entry ?
|
// Display a menu entry ?
|
||||||
@ -111,6 +113,8 @@ function plugin_init_example() {
|
|||||||
// Massive Action definition
|
// Massive Action definition
|
||||||
$PLUGIN_HOOKS['use_massive_action']['example']=1;
|
$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
|
// Add specific files to add to the header : javascript or css
|
||||||
$PLUGIN_HOOKS['add_javascript']['example']="example.js";
|
$PLUGIN_HOOKS['add_javascript']['example']="example.js";
|
||||||
$PLUGIN_HOOKS['add_css']['example']="example.css";
|
$PLUGIN_HOOKS['add_css']['example']="example.css";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user