[TASK] Cleanup TCA select field configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Configuration / TCA / tx_rtehtmlarea_acronym.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym',
5 'label' => 'term',
6 'default_sortby' => 'ORDER BY term',
7 'sortby' => 'sorting',
8 'delete' => 'deleted',
9 'enablecolumns' => array(
10 'disabled' => 'hidden',
11 'starttime' => 'starttime',
12 'endtime' => 'endtime'
13 ),
14 'typeicon_classes' => array(
15 'default' => 'mimetypes-x-tx_rtehtmlarea_acronym'
16 )
17 ),
18 'interface' => array(
19 'showRecordFieldList' => 'hidden,sys_language_uid,term,acronym'
20 ),
21 'columns' => array(
22 'hidden' => array(
23 'exclude' => 0,
24 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
25 'config' => array(
26 'type' => 'check',
27 'default' => '0'
28 )
29 ),
30 'starttime' => array(
31 'exclude' => 0,
32 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
33 'config' => array(
34 'type' => 'input',
35 'size' => '8',
36 'max' => '20',
37 'eval' => 'date',
38 'default' => '0',
39 'checkbox' => '0'
40 )
41 ),
42 'endtime' => array(
43 'exclude' => 0,
44 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
45 'config' => array(
46 'type' => 'input',
47 'size' => '8',
48 'max' => '20',
49 'eval' => 'date',
50 'checkbox' => '0',
51 'default' => '0',
52 'range' => array(
53 'upper' => mktime(0, 0, 0, 12, 31, 2020),
54 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))
55 )
56 )
57 ),
58 'sys_language_uid' => array(
59 'exclude' => 0,
60 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
61 'config' => array(
62 'type' => 'select',
63 'renderType' => 'selectSingle',
64 'foreign_table' => 'sys_language',
65 'foreign_table_where' => 'ORDER BY sys_language.title',
66 'items' => array(
67 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', '-1'),
68 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', '0')
69 ),
70 'default' => 0
71 )
72 ),
73 'type' => array(
74 'exclude' => 1,
75 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type',
76 'config' => array(
77 'type' => 'radio',
78 'items' => array(
79 array('LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type.I.1', '2'),
80 array('LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type.I.0', '1')
81 ),
82 'default' => '2'
83 )
84 ),
85 'term' => array(
86 'exclude' => 0,
87 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.term',
88 'config' => array(
89 'type' => 'input',
90 'size' => '30',
91 'eval' => 'trim,required'
92 )
93 ),
94 'acronym' => array(
95 'exclude' => 0,
96 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.acronym',
97 'config' => array(
98 'type' => 'input',
99 'size' => '30',
100 'eval' => 'trim,required'
101 )
102 ),
103 'static_lang_isocode' => array(
104 'exclude' => 0,
105 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.static_lang_isocode',
106 'displayCond' => 'EXT:static_info_tables:LOADED:true',
107 'config' => array(
108 'type' => 'select',
109 'renderType' => 'selectSingle',
110 'items' => array(
111 array('', 0),
112 ),
113 'foreign_table' => 'static_languages',
114 'foreign_table_where' => 'ORDER BY static_languages.lg_name_en',
115 'itemsProcFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateLanguagesSelector',
116 'size' => 1,
117 'minitems' => 0,
118 'maxitems' => 1,
119 'wizards' => array(
120 'suggest' => array(
121 'type' => 'suggest',
122 'default' => array(
123 'receiverClass' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\SuggestReceiver'
124 )
125 )
126 )
127 )
128 )
129 ),
130 'types' => array(
131 '0' => array(
132 'showitem' => 'hidden, --palette--;;1, sys_language_uid, type, term, acronym, static_lang_isocode',
133 ),
134 ),
135 'palettes' => array(
136 '1' => array(
137 'showitem' => 'starttime, endtime',
138 ),
139 ),
140 );