Skip to content

Commit

Permalink
fix: update hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
AdrienClairembault authored and btry committed Oct 21, 2020
1 parent e180be2 commit d2d9980
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ function plugin_init_formcreator() {
Ticket::class => 'plugin_formcreator_hook_add_ticket'
];
$PLUGIN_HOOKS['item_update']['formcreator'] = [
Ticket::class => 'plugin_formcreator_hook_update_ticket'
Ticket::class => 'plugin_formcreator_hook_update_ticket',
TicketValidation::class => 'plugin_formcreator_hook_update_ticketvalidation',
];
$PLUGIN_HOOKS['item_delete']['formcreator'] = [
Ticket::class => 'plugin_formcreator_hook_delete_ticket'
Expand All @@ -152,13 +153,8 @@ function plugin_init_formcreator() {
Ticket::class => 'plugin_formcreator_hook_restore_ticket'
];
$PLUGIN_HOOKS['item_purge']['formcreator'] = [
Ticket::class => 'plugin_formcreator_hook_purge_ticket'
];
$PLUGIN_HOOKS['item_update']['formcreator'] = [
TicketValidation::class => 'plugin_formcreator_hook_update_ticketvalidation'
];
$PLUGIN_HOOKS['item_purge']['formcreator'] = [
TicketValidation::class => 'plugin_formcreator_hook_purge_ticketvalidation'
Ticket::class => 'plugin_formcreator_hook_purge_ticket',
TicketValidation::class => 'plugin_formcreator_hook_purge_ticketvalidation',
];
$PLUGIN_HOOKS['pre_item_purge']['formcreator'] = [
PluginFormcreatorTargetTicket::class => 'plugin_formcreator_hook_pre_purge_targetTicket',
Expand Down

0 comments on commit d2d9980

Please sign in to comment.