[BUGFIX] Fix invalid type hints in EXT:form's file upload converter
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / ext_tables.php
index aae73d7..c36388f 100644 (file)
@@ -1,25 +1,21 @@
 <?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
-            ]
-        );
-    }
-});
+// 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/module-form.svg',
+        'labels' => 'LLL:EXT:form/Resources/Private/Language/locallang_module.xlf',
+        'navigationComponentId' => '',
+        'inheritNavigationComponentFromMainModule' => false
+    ]
+);