Skip to content

Commit e0648cc

Browse files
committed
fix hook name
1 parent b5b34f3 commit e0648cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ function plugin_init_example() {
235235
$PLUGIN_HOOKS[Hooks::PRE_ITEM_FORM]['example'] = [ItemForm::class, 'preItemForm'];
236236
$PLUGIN_HOOKS[Hooks::POST_ITEM_FORM]['example'] = [ItemForm::class, 'postItemForm'];
237237

238-
$PLUGIN_HOOKS[Hooks::PRE_SECTION]['example'] = [ItemForm::class, 'preSection'];
239-
$PLUGIN_HOOKS[Hooks::POST_SECTION]['example'] = [ItemForm::class, 'postSection'];
238+
$PLUGIN_HOOKS[Hooks::PRE_ITIL_INFO_SECTION]['example'] = [ItemForm::class, 'preSection'];
239+
$PLUGIN_HOOKS[Hooks::POST_ITIL_INFO_SECTION]['example'] = [ItemForm::class, 'postSection'];
240240

241241
// Add new actions to timeline
242242
$PLUGIN_HOOKS[Hooks::TIMELINE_ACTIONS]['example'] = [

0 commit comments

Comments
 (0)