Skip to content

Commit

Permalink
Fix support for contao-mp_forms (#21)
Browse files Browse the repository at this point in the history
* Set load after mp_forms

* Register hooks via service tags
  • Loading branch information
MarkejN authored Nov 25, 2022
1 parent d65bd66 commit acba635
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
5 changes: 5 additions & 0 deletions src/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ services:
arguments:
- '@request_stack'
- '@inspiredminds.fieldsetduplication.helper.field'
tags:
- { name: contao.hook, hook: loadFormField, method: onLoadFormField }
- { name: contao.hook, hook: compileFormFields, method: onCompileFormFields, priority: -100}
- { name: contao.hook, hook: storeFormData, method: onStoreFormData, priority: 100 }
- { name: contao.hook, hook: prepareFormData, method: onPrepareFormData }

InspiredMinds\ContaoFieldsetDuplication\EventListener\FormFieldDcaListener:
arguments:
Expand Down
20 changes: 0 additions & 20 deletions src/Resources/contao/config/config.php

This file was deleted.

0 comments on commit acba635

Please sign in to comment.