[BUGFIX] Fix invalid type hints in EXT:form's file upload converter
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / ext_tables.php
index 8357135..c36388f 100644 (file)
@@ -1,37 +1,21 @@
 <?php
-declare(encoding = 'utf-8');
+defined('TYPO3_MODE') or die();
 
-if (!defined('TYPO3_MODE')) {
-       die ('Access denied.');
-}
-
-$PATH_form = t3lib_extMgm::extPath('form');
-
-       // Add Default TS to Include static (from extensions)
-t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/', 'Default TS');
-
-$TCA['tt_content']['columns']['bodytext']['config']['wizards']['forms'] = array(
-       'notNewRecords' => 1,
-       'enableByTypeConfig' => 1,
-       'type' => 'script',
-       'title' => 'Form wizard',
-       'icon' => 'wizard_forms.gif',
-       'script' => t3lib_extMgm::extRelPath('form') . 'Classes/Controller/Wizard.php',
-       'params' => array(
-               'xmlOutput' => 0
-       )
+// 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
+    ]
 );
-
-$TCA['tt_content']['types']['mailform']['showitem'] = '
-       CType;;4;;1-1-1,
-       hidden,
-       header;;3;;2-2-2,
-       linkToTop;;;;3-3-3,
-       --div--;LLL:EXT:cms/locallang_ttc.xml:CType.I.8,
-       bodytext;LLL:EXT:cms/locallang_ttc.php:bodytext.ALT.mailform;;nowrap:wizards[forms];3-3-3,
-       --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
-       starttime,
-       endtime,
-       fe_group
-';
-?>
\ No newline at end of file