[BUGFIX] Always use backend form protection in backend URI builder
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / ext_tables.php
index 0ddea8f..6d53f03 100644 (file)
@@ -1,30 +1,5 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
-}
-// Add Default TS to Include static (from extensions)
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::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' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('form') . 'Classes/Controller/Wizard.php',
-       'params' => array(
-               'xmlOutput' => 0
-       )
-);
-$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
+defined('TYPO3_MODE') or die();
+
+// Register static TypoScript resource
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('form', 'Configuration/TypoScript/', 'Default TS');