[BUGFIX] Fix invalid type hints in EXT:form's file upload converter
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / ext_tables.php
index fc87827..c36388f 100644 (file)
@@ -1,13 +1,21 @@
 <?php
 defined('TYPO3_MODE') or die();
 
-// Register static TypoScript resource
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('form', 'Configuration/TypoScript/', 'Default TS');
-
-if (TYPO3_MODE === 'BE') {
-       // Register form wizard as backend module
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
-               'wizard_form',
-               'EXT:form/Modules/Wizards/FormWizard/'
-       );
-}
+// 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
+    ]
+);