[TASK] Cleanup TCA select field configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_action / Configuration / TCA / sys_action.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'title',
5 'descriptionColumn' => 'description',
6 'tstamp' => 'tstamp',
7 'default_sortby' => 'ORDER BY title',
8 'sortby' => 'sorting',
9 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
10 'title' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action',
11 'crdate' => 'crdate',
12 'cruser_id' => 'cruser_id',
13 'adminOnly' => 1,
14 'rootLevel' => -1,
15 'setToDefaultOnCopy' => 'assign_to_groups',
16 'enablecolumns' => array(
17 'disabled' => 'hidden'
18 ),
19 'typeicon_classes' => array(
20 'default' => 'mimetypes-x-sys_action'
21 ),
22 'type' => 'type'
23 ),
24 'interface' => array(
25 'showRecordFieldList' => 'hidden,title,type,description,assign_to_groups'
26 ),
27 'columns' => array(
28 'title' => array(
29 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.title',
30 'config' => array(
31 'type' => 'input',
32 'size' => '25',
33 'max' => '255',
34 'eval' => 'trim,required'
35 )
36 ),
37 'description' => array(
38 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.description',
39 'config' => array(
40 'type' => 'text',
41 'rows' => 10,
42 'cols' => 48
43 )
44 ),
45 'hidden' => array(
46 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.hidden',
47 'config' => array(
48 'type' => 'check'
49 )
50 ),
51 'type' => array(
52 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.type',
53 'config' => array(
54 'type' => 'select',
55 'renderType' => 'selectSingle',
56 'items' => array(
57 array('', '0'),
58 array('LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.1', '1'),
59 array('LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.2', '2'),
60 array('LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.3', '3'),
61 array('LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.4', '4'),
62 array('LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.5', '5')
63 )
64 )
65 ),
66 'assign_to_groups' => array(
67 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.assign_to_groups',
68 'config' => array(
69 'type' => 'select',
70 'renderType' => 'selectMultipleSideBySide',
71 'foreign_table' => 'be_groups',
72 'foreign_table_where' => 'ORDER BY be_groups.title',
73 'MM' => 'sys_action_asgr_mm',
74 'size' => '10',
75 'minitems' => '0',
76 'maxitems' => '200',
77 'autoSizeMax' => '10'
78 )
79 ),
80 't1_userprefix' => array(
81 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_userprefix',
82 'config' => array(
83 'type' => 'input',
84 'size' => '25',
85 'max' => '10',
86 'eval' => 'trim'
87 )
88 ),
89 't1_allowed_groups' => array(
90 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_allowed_groups',
91 'config' => array(
92 'type' => 'select',
93 'renderType' => 'selectMultipleSideBySide',
94 'foreign_table' => 'be_groups',
95 'foreign_table_where' => 'ORDER BY be_groups.title',
96 'size' => '10',
97 'maxitems' => '20',
98 'autoSizeMax' => '10'
99 )
100 ),
101 't1_create_user_dir' => array(
102 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_create_user_dir',
103 'config' => array(
104 'type' => 'check'
105 )
106 ),
107 't1_copy_of_user' => array(
108 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_copy_of_user',
109 'config' => array(
110 'type' => 'group',
111 'internal_type' => 'db',
112 'allowed' => 'be_users',
113 'size' => '1',
114 'maxitems' => '1',
115 'minitems' => '1',
116 'show_thumbs' => '1',
117 'wizards' => array(
118 'suggest' => array(
119 'type' => 'suggest'
120 )
121 )
122 )
123 ),
124 't3_listPid' => array(
125 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t3_listPid',
126 'config' => array(
127 'type' => 'group',
128 'internal_type' => 'db',
129 'allowed' => 'pages',
130 'size' => '1',
131 'maxitems' => '1',
132 'minitems' => '1',
133 'show_thumbs' => '1',
134 'wizards' => array(
135 'suggest' => array(
136 'type' => 'suggest'
137 )
138 )
139 )
140 ),
141 't3_tables' => array(
142 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t3_tables',
143 'config' => array(
144 'type' => 'select',
145 'renderType' => 'selectMultipleSideBySide',
146 'special' => 'tables',
147 'items' => array(
148 array('', '')
149 )
150 )
151 ),
152 't4_recordsToEdit' => array(
153 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t4_recordsToEdit',
154 'config' => array(
155 'type' => 'group',
156 'internal_type' => 'db',
157 'allowed' => '*',
158 'prepend_tname' => 1,
159 'size' => '5',
160 'maxitems' => '50',
161 'minitems' => '1',
162 'show_thumbs' => '1',
163 'wizards' => array(
164 'suggest' => array(
165 'type' => 'suggest'
166 )
167 )
168 )
169 )
170 ),
171 'types' => array(
172 '0' => array('showitem' => '
173 type,
174 title,
175 description,
176 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
177 hidden,
178 assign_to_groups
179 '),
180 '1' => array('showitem' => '
181 type,
182 title,
183 description,
184 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.create_user.settings,
185 t1_userprefix,t1_copy_of_user,
186 t1_allowed_groups,
187 t1_create_user_dir,
188 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
189 hidden,
190 assign_to_groups
191 '),
192 '2' => array('showitem' => '
193 type,
194 title,
195 description,
196 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
197 hidden,
198 assign_to_groups
199 '),
200 '3' => array('showitem' => '
201 type,
202 title,
203 description,
204 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.record_list.settings,
205 t3_listPid,
206 t3_tables,
207 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
208 hidden,
209 assign_to_groups
210 '),
211 '4' => array('showitem' => '
212 type,
213 title,
214 description,
215 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.edit_records.settings,
216 t4_recordsToEdit,
217 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
218 hidden,
219 assign_to_groups
220 '),
221 '5' => array('showitem' => '
222 type,
223 title,
224 description,
225 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.new_record.settings,
226 t3_listPid;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.new_record.pid,
227 t3_tables;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.new_record.tablename,
228 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
229 hidden,
230 assign_to_groups
231 ')
232 )
233 );