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:
wawax 2009-04-19 19:40:56 +00:00
parent 5d9a90f281
commit c3604701c1
2 changed files with 14 additions and 1 deletions

View File

@ -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()
{
}
?> ?>

View File

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