Feat(core): add exmaple for new hook (pre/post_item_accordion_section)

This commit is contained in:
stonebuzz
2024-09-16 16:13:06 +02:00
parent fdd3ce2603
commit b5b34f3c63
2 changed files with 71 additions and 0 deletions

View File

@ -235,6 +235,9 @@ function plugin_init_example() {
$PLUGIN_HOOKS[Hooks::PRE_ITEM_FORM]['example'] = [ItemForm::class, 'preItemForm'];
$PLUGIN_HOOKS[Hooks::POST_ITEM_FORM]['example'] = [ItemForm::class, 'postItemForm'];
$PLUGIN_HOOKS[Hooks::PRE_SECTION]['example'] = [ItemForm::class, 'preSection'];
$PLUGIN_HOOKS[Hooks::POST_SECTION]['example'] = [ItemForm::class, 'postSection'];
// Add new actions to timeline
$PLUGIN_HOOKS[Hooks::TIMELINE_ACTIONS]['example'] = [
ItemForm::class, 'timelineActions'