[CLEANUP] Remove references to $GLOBALS['FILEMOUNTS']
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / ext_tables.php
index 1b04f6b..1786964 100644 (file)
@@ -6,25 +6,9 @@ if (!defined('TYPO3_MODE')) {
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'static/clickenlarge/', 'Clickenlarge Rendering');
 // Add configuration of soft references on image tags in RTE content
 require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'hooks/softref/ext_tables.php';
-// Add acronyms table
-$GLOBALS['TCA']['tx_rtehtmlarea_acronym'] = array(
-       'ctrl' => array(
-               'title' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:TYPO3\\CMS\\Rtehtmlarea\\Extension\\Acronym',
-               'label' => 'term',
-               'default_sortby' => 'ORDER BY term',
-               'sortby' => 'sorting',
-               'delete' => 'deleted',
-               'enablecolumns' => array(
-                       'disabled' => 'hidden',
-                       'starttime' => 'starttime',
-                       'endtime' => 'endtime'
-               ),
-               'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'tca.php',
-               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'extensions/Acronym/skin/images/acronym.gif'
-       )
-);
+
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xml');
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xlf');
 // Add contextual help files
 $htmlAreaRteContextHelpFiles = array(
        'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xlf',
@@ -45,35 +29,41 @@ if (TYPO3_MODE === 'BE' && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::i
        $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge($GLOBALS['TYPO3_USER_SETTINGS']['columns'], array(
                'rteWidth' => array(
                        'type' => 'text',
-                       'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteWidth',
+                       'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteWidth',
                        'csh' => 'xEXT_rtehtmlarea_General:rteWidth'
                ),
                'rteHeight' => array(
                        'type' => 'text',
-                       'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteHeight',
+                       'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteHeight',
                        'csh' => 'xEXT_rtehtmlarea_General:rteHeight'
                ),
                'rteResize' => array(
                        'type' => 'check',
-                       'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteResize',
+                       'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteResize',
                        'csh' => 'xEXT_rtehtmlarea_General:rteResize'
                ),
                'rteMaxHeight' => array(
                        'type' => 'text',
-                       'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteMaxHeight',
+                       'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteMaxHeight',
                        'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight'
                ),
                'rteCleanPasteBehaviour' => array(
                        'type' => 'select',
-                       'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:rteCleanPasteBehaviour',
+                       'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:rteCleanPasteBehaviour',
                        'items' => array(
-                               'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:plainText',
-                               'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteStructure',
-                               'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteFormat'
+                               'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:plainText',
+                               'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:pasteStructure',
+                               'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:pasteFormat'
                        ),
                        'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour'
                )
        ));
-       $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xml:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
+       $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xlf:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
 }
-?>
\ No newline at end of file
+if (TYPO3_MODE === 'BE') {
+       // Register RTE element browser wizard
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
+               'rtehtmlarea_wizard_element_browser',
+               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod3/'
+       );
+}
\ No newline at end of file