[TASK] Fix CGL violations against InlineControlStructure
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 // Add static template for Click-enlarge rendering
7 t3lib_extMgm::addStaticFile($_EXTKEY, 'static/clickenlarge/', 'Clickenlarge Rendering');
8
9 // Add configuration of soft references on image tags in RTE content
10 require_once(t3lib_extMgm::extPath($_EXTKEY) . 'hooks/softref/ext_tables.php');
11
12 // Add acronyms table
13 $GLOBALS['TCA']['tx_rtehtmlarea_acronym'] = array (
14 'ctrl' => Array (
15 'title' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym',
16 'label' => 'term',
17 'default_sortby' => 'ORDER BY term',
18 'sortby' => 'sorting',
19 'delete' => 'deleted',
20 'enablecolumns' => Array (
21 'disabled' => 'hidden',
22 'starttime' => 'starttime',
23 'endtime' => 'endtime',
24 ),
25 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
26 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'extensions/Acronym/skin/images/acronym.gif',
27 ),
28 );
29 t3lib_extMgm::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
30 t3lib_extMgm::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xml');
31
32 // Add contextual help files
33 $htmlAreaRteContextHelpFiles = array(
34 'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xlf',
35 'Acronym' => 'EXT:' . $_EXTKEY . '/extensions/Acronym/locallang_csh.xlf',
36 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xlf',
37 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xlf',
38 'MicrodataSchema' => 'EXT:' . $_EXTKEY . '/extensions/MicrodataSchema/locallang_csh.xlf',
39 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xlf',
40 'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xlf',
41 'TableOperations' => 'EXT:' . $_EXTKEY . '/extensions/TableOperations/locallang_csh.xlf',
42 );
43 foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
44 t3lib_extMgm::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
45 }
46 unset($htmlAreaRteContextHelpFiles);
47
48 // Extend TYPO3 User Settings Configuration
49 if (TYPO3_MODE === 'BE' && t3lib_extMgm::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
50 $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge(
51 $GLOBALS['TYPO3_USER_SETTINGS']['columns'],
52 array(
53 'rteWidth' => array(
54 'type' => 'text',
55 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteWidth',
56 'csh' => 'xEXT_rtehtmlarea_General:rteWidth',
57 ),
58 'rteHeight' => array(
59 'type' => 'text',
60 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteHeight',
61 'csh' => 'xEXT_rtehtmlarea_General:rteHeight',
62 ),
63 'rteResize' => array(
64 'type' => 'check',
65 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteResize',
66 'csh' => 'xEXT_rtehtmlarea_General:rteResize',
67 ),
68 'rteMaxHeight' => array(
69 'type' => 'text',
70 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteMaxHeight',
71 'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight',
72 ),
73 'rteCleanPasteBehaviour' => array(
74 'type' => 'select',
75 'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:rteCleanPasteBehaviour',
76 'items' => array(
77 'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:plainText',
78 'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteStructure',
79 'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteFormat',
80 ),
81 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour',
82 ),
83 )
84 );
85 $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xml:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
86 }
87 ?>