3eec17d025ddd266ac19c7f704c83ca8e6026cb1
[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 'items' => array(
56 array('', '0'),
57 array('LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.1', '1'),
58 array('LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.2', '2'),
59 array('LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.3', '3'),
60 array('LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.4', '4'),
61 array('LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.type.5', '5')
62 )
63 )
64 ),
65 'assign_to_groups' => array(
66 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.assign_to_groups',
67 'config' => array(
68 'type' => 'select',
69 'foreign_table' => 'be_groups',
70 'foreign_table_where' => 'ORDER BY be_groups.title',
71 'MM' => 'sys_action_asgr_mm',
72 'size' => '10',
73 'minitems' => '0',
74 'maxitems' => '200',
75 'autoSizeMax' => '10'
76 )
77 ),
78 't1_userprefix' => array(
79 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_userprefix',
80 'config' => array(
81 'type' => 'input',
82 'size' => '25',
83 'max' => '10',
84 'eval' => 'trim'
85 )
86 ),
87 't1_allowed_groups' => array(
88 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_allowed_groups',
89 'config' => array(
90 'type' => 'select',
91 'foreign_table' => 'be_groups',
92 'foreign_table_where' => 'ORDER BY be_groups.title',
93 'size' => '10',
94 'maxitems' => '20',
95 'autoSizeMax' => '10'
96 )
97 ),
98 't1_create_user_dir' => array(
99 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_create_user_dir',
100 'config' => array(
101 'type' => 'check'
102 )
103 ),
104 't1_copy_of_user' => array(
105 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_copy_of_user',
106 'config' => array(
107 'type' => 'group',
108 'internal_type' => 'db',
109 'allowed' => 'be_users',
110 'size' => '1',
111 'maxitems' => '1',
112 'minitems' => '1',
113 'show_thumbs' => '1',
114 'wizards' => array(
115 'suggest' => array(
116 'type' => 'suggest'
117 )
118 )
119 )
120 ),
121 't3_listPid' => array(
122 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t3_listPid',
123 'config' => array(
124 'type' => 'group',
125 'internal_type' => 'db',
126 'allowed' => 'pages',
127 'size' => '1',
128 'maxitems' => '1',
129 'minitems' => '1',
130 'show_thumbs' => '1',
131 'wizards' => array(
132 'suggest' => array(
133 'type' => 'suggest'
134 )
135 )
136 )
137 ),
138 't3_tables' => array(
139 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t3_tables',
140 'config' => array(
141 'type' => 'select',
142 'special' => 'tables',
143 'items' => array(
144 array('', '')
145 )
146 )
147 ),
148 't4_recordsToEdit' => array(
149 'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t4_recordsToEdit',
150 'config' => array(
151 'type' => 'group',
152 'internal_type' => 'db',
153 'allowed' => '*',
154 'prepend_tname' => 1,
155 'size' => '5',
156 'maxitems' => '50',
157 'minitems' => '1',
158 'show_thumbs' => '1',
159 'wizards' => array(
160 'suggest' => array(
161 'type' => 'suggest'
162 )
163 )
164 )
165 )
166 ),
167 'types' => array(
168 '0' => array('showitem' => '
169 type,
170 title,
171 description,
172 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
173 hidden,
174 assign_to_groups
175 '),
176 '1' => array('showitem' => '
177 type,
178 title,
179 description,
180 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.create_user.settings,
181 t1_userprefix,t1_copy_of_user,
182 t1_allowed_groups,
183 t1_create_user_dir,
184 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
185 hidden,
186 assign_to_groups
187 '),
188 '2' => array('showitem' => '
189 type,
190 title,
191 description,
192 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
193 hidden,
194 assign_to_groups
195 '),
196 '3' => array('showitem' => '
197 type,
198 title,
199 description,
200 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.record_list.settings,
201 t3_listPid,
202 t3_tables,
203 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
204 hidden,
205 assign_to_groups
206 '),
207 '4' => array('showitem' => '
208 type,
209 title,
210 description,
211 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.edit_records.settings,
212 t4_recordsToEdit,
213 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
214 hidden,
215 assign_to_groups
216 '),
217 '5' => array('showitem' => '
218 type,
219 title,
220 description,
221 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.new_record.settings,
222 t3_listPid;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.new_record.pid,
223 t3_tables;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.new_record.tablename,
224 --div--;LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.tab.access,
225 hidden,
226 assign_to_groups
227 ')
228 )
229 );