diff --git a/typo3/sysext/form/ext_tables.php b/typo3/sysext/form/ext_tables.php index aae73d76fe3120470139b650897a5b5c53ee95a4..65a4f3006bce4ef966dcb3168ac88fb255714f4c 100644 --- a/typo3/sysext/form/ext_tables.php +++ b/typo3/sysext/form/ext_tables.php @@ -1,25 +1,23 @@ <?php defined('TYPO3_MODE') or die(); -call_user_func(function () { - if (TYPO3_MODE === 'BE') { - // Register the backend module Web->Forms - \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule( - 'TYPO3.CMS.Form', - 'web', - 'formbuilder', - '', - [ - 'FormManager' => 'index, show, create, duplicate, references, delete', - 'FormEditor' => 'index, saveForm, renderFormPage, renderRenderableOptions', - ], - [ - 'access' => 'user,group', - 'icon' => 'EXT:form/Resources/Public/Icons/Extension.png', - 'labels' => 'LLL:EXT:form/Resources/Private/Language/locallang_module.xlf', - 'navigationComponentId' => '', - 'inheritNavigationComponentFromMainModule' => false - ] - ); - } -}); +if (TYPO3_MODE === 'BE') { + // Register the backend module Web->Forms + \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule( + 'TYPO3.CMS.Form', + 'web', + 'formbuilder', + '', + [ + 'FormManager' => 'index, show, create, duplicate, references, delete', + 'FormEditor' => 'index, saveForm, renderFormPage, renderRenderableOptions', + ], + [ + 'access' => 'user,group', + 'icon' => 'EXT:form/Resources/Public/Icons/Extension.png', + 'labels' => 'LLL:EXT:form/Resources/Private/Language/locallang_module.xlf', + 'navigationComponentId' => '', + 'inheritNavigationComponentFromMainModule' => false + ] + ); +}