[CLEANUP] Remove dividers2tabs functionality
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / be_users.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'username',
5 'tstamp' => 'tstamp',
6 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'delete' => 'deleted',
10 'adminOnly' => 1, // Only admin users can edit
11 'rootLevel' => 1,
12 'default_sortby' => 'ORDER BY admin, username',
13 'enablecolumns' => array(
14 'disabled' => 'disable',
15 'starttime' => 'starttime',
16 'endtime' => 'endtime'
17 ),
18 'type' => 'admin',
19 'typeicon_column' => 'admin',
20 'typeicons' => array(
21 '0' => 'be_users.gif',
22 '1' => 'be_users_admin.gif'
23 ),
24 'typeicon_classes' => array(
25 '0' => 'status-user-backend',
26 '1' => 'status-user-admin',
27 'default' => 'status-user-backend'
28 ),
29 'mainpalette' => '1',
30 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,file_permissions,userMods',
31 'versioningWS_alwaysAllowLiveEdit' => TRUE,
32 'searchFields' => 'username,email,realName'
33 ),
34 'interface' => array(
35 'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,file_permissions,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
36 ),
37 'columns' => array(
38 'username' => array(
39 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.username',
40 'config' => array(
41 'type' => 'input',
42 'size' => '20',
43 'max' => '50',
44 'eval' => 'nospace,lower,unique,required'
45 )
46 ),
47 'password' => array(
48 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.password',
49 'config' => array(
50 'type' => 'input',
51 'size' => '20',
52 'max' => '40',
53 'eval' => 'required,md5,password'
54 )
55 ),
56 'usergroup' => array(
57 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup',
58 'config' => array(
59 'type' => 'select',
60 'foreign_table' => 'be_groups',
61 'foreign_table_where' => 'ORDER BY be_groups.title',
62 'size' => '5',
63 'maxitems' => '20',
64 'iconsInOptionTags' => 1,
65 'wizards' => array(
66 '_PADDING' => 1,
67 '_VERTICAL' => 1,
68 'edit' => array(
69 'type' => 'popup',
70 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_edit_title',
71 'module' => array(
72 'name' => 'wizard_edit',
73 ),
74 'popup_onlyOpenIfSelected' => 1,
75 'icon' => 'edit2.gif',
76 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
77 ),
78 'add' => array(
79 'type' => 'script',
80 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_add_title',
81 'icon' => 'add.gif',
82 'params' => array(
83 'table' => 'be_groups',
84 'pid' => '0',
85 'setValue' => 'prepend'
86 ),
87 'module' => array(
88 'name' => 'wizard_add'
89 )
90 ),
91 'list' => array(
92 'type' => 'script',
93 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_list_title',
94 'icon' => 'list.gif',
95 'params' => array(
96 'table' => 'be_groups',
97 'pid' => '0'
98 ),
99 'module' => array(
100 'name' => 'wizard_list'
101 )
102 )
103 )
104 )
105 ),
106 'lockToDomain' => array(
107 'label' => 'LLL:EXT:lang/locallang_tca.xlf:lockToDomain',
108 'config' => array(
109 'type' => 'input',
110 'size' => '20',
111 'eval' => 'trim',
112 'max' => '50',
113 'softref' => 'substitute'
114 )
115 ),
116 'db_mountpoints' => array(
117 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options_db_mounts',
118 'config' => array(
119 'type' => 'group',
120 'internal_type' => 'db',
121 'allowed' => 'pages',
122 'size' => '3',
123 'maxitems' => 100,
124 'autoSizeMax' => 10,
125 'show_thumbs' => '1',
126 'wizards' => array(
127 'suggest' => array(
128 'type' => 'suggest'
129 )
130 )
131 )
132 ),
133 'file_mountpoints' => array(
134 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options_file_mounts',
135 'config' => array(
136 'type' => 'select',
137 'foreign_table' => 'sys_filemounts',
138 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
139 'size' => '3',
140 'maxitems' => 100,
141 'autoSizeMax' => 10,
142 'iconsInOptionTags' => 1,
143 'wizards' => array(
144 '_PADDING' => 1,
145 '_VERTICAL' => 1,
146 'edit' => array(
147 'type' => 'popup',
148 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_edit_title',
149 'module' => array(
150 'name' => 'wizard_edit',
151 ),
152 'icon' => 'edit2.gif',
153 'popup_onlyOpenIfSelected' => 1,
154 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
155 ),
156 'add' => array(
157 'type' => 'script',
158 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_add_title',
159 'icon' => 'add.gif',
160 'params' => array(
161 'table' => 'sys_filemounts',
162 'pid' => '0',
163 'setValue' => 'prepend'
164 ),
165 'module' => array(
166 'name' => 'wizard_add'
167 )
168 ),
169 'list' => array(
170 'type' => 'script',
171 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_list_title',
172 'icon' => 'list.gif',
173 'params' => array(
174 'table' => 'sys_filemounts',
175 'pid' => '0'
176 ),
177 'module' => array(
178 'name' => 'wizard_list'
179 )
180 )
181 )
182 )
183 ),
184 'email' => array(
185 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.email',
186 'config' => array(
187 'type' => 'input',
188 'size' => '20',
189 'eval' => 'trim',
190 'max' => '80',
191 'softref' => 'email[subst]'
192 )
193 ),
194 'realName' => array(
195 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
196 'config' => array(
197 'type' => 'input',
198 'size' => '20',
199 'eval' => 'trim',
200 'max' => '80'
201 )
202 ),
203 'disable' => array(
204 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
205 'config' => array(
206 'type' => 'check'
207 )
208 ),
209 'disableIPlock' => array(
210 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.disableIPlock',
211 'config' => array(
212 'type' => 'check'
213 )
214 ),
215 'admin' => array(
216 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.admin',
217 'config' => array(
218 'type' => 'check',
219 'default' => '0'
220 )
221 ),
222 'options' => array(
223 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options',
224 'config' => array(
225 'type' => 'check',
226 'items' => array(
227 array('LLL:EXT:lang/locallang_tca.xlf:be_users.options_db_mounts', 0),
228 array('LLL:EXT:lang/locallang_tca.xlf:be_users.options_file_mounts', 0)
229 ),
230 'default' => '3'
231 )
232 ),
233 'file_permissions' => array(
234 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms',
235 'config' => array(
236 'type' => 'select',
237 'items' => array(
238 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'),
239 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'),
240 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'),
241 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'),
242 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'),
243 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'),
244 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'),
245 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'),
246 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'recursivedeleteFolder', 'apps-filetree-folder-default'),
247 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'),
248 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'),
249 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'),
250 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'),
251 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_upload', 'files_upload', 'mimetypes-other-other'),
252 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'),
253 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'),
254 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'),
255 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms_unzip', 'unzipFile', 'mimetypes-other-other'),
256 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other')
257 ),
258 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
259 'size' => 17,
260 'maxitems' => 17,
261 'itemListStyle' => 'width:500px',
262 'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,moveFile,files_copy,deleteFile'
263 )
264 ),
265 'workspace_perms' => array(
266 'label' => 'LLL:EXT:lang/locallang_tca.xlf:workspace_perms',
267 'config' => array(
268 'type' => 'check',
269 'items' => array(
270 array('LLL:EXT:lang/locallang_tca.xlf:workspace_perms_live', 0)
271 ),
272 'default' => 1
273 )
274 ),
275 'starttime' => array(
276 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
277 'config' => array(
278 'type' => 'input',
279 'size' => '13',
280 'max' => '20',
281 'eval' => 'datetime',
282 'default' => '0'
283 )
284 ),
285 'endtime' => array(
286 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
287 'config' => array(
288 'type' => 'input',
289 'size' => '13',
290 'max' => '20',
291 'eval' => 'datetime',
292 'default' => '0',
293 'range' => array(
294 'upper' => mktime(0, 0, 0, 1, 1, 2038)
295 )
296 )
297 ),
298 'lang' => array(
299 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.lang',
300 'config' => array(
301 'type' => 'select',
302 'items' => array(
303 array('English', '')
304 )
305 )
306 ),
307 'userMods' => array(
308 'label' => 'LLL:EXT:lang/locallang_tca.xlf:userMods',
309 'config' => array(
310 'type' => 'select',
311 'special' => 'modListUser',
312 'size' => '5',
313 'autoSizeMax' => 50,
314 'maxitems' => '100',
315 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
316 'iconsInOptionTags' => 1
317 )
318 ),
319 'allowed_languages' => array(
320 'label' => 'LLL:EXT:lang/locallang_tca.xlf:allowed_languages',
321 'config' => array(
322 'type' => 'select',
323 'special' => 'languages',
324 'maxitems' => '1000',
325 'renderMode' => 'checkbox'
326 )
327 ),
328 'TSconfig' => array(
329 'label' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig',
330 'config' => array(
331 'type' => 'text',
332 'cols' => '40',
333 'rows' => '5',
334 'softref' => 'TSconfig'
335 ),
336 'defaultExtras' => 'fixed-font : enable-tab'
337 ),
338 'createdByAction' => array(
339 'config' => array(
340 'type' => 'passthrough'
341 )
342 ),
343 'lastlogin' => array(
344 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.lastlogin',
345 'config' => array(
346 'type' => 'input',
347 'readOnly' => '1',
348 'size' => '12',
349 'eval' => 'datetime',
350 'default' => 0
351 )
352 ),
353 'category_perms' => array(
354 'label' => 'LLL:EXT:lang/locallang_tca.xlf:category_perms',
355 'config' => array(
356 'type' => 'select',
357 'foreign_table' => 'sys_category',
358 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
359 'renderMode' => 'tree',
360 'treeConfig' => array(
361 'parentField' => 'parent',
362 'appearance' => array(
363 'expandAll' => FALSE,
364 'showHeader' => FALSE,
365 'maxLevels' => 99,
366 ),
367 ),
368 'size' => 10,
369 'autoSizeMax' => 20,
370 'minitems' => 0,
371 'maxitems' => 9999
372 )
373 )
374 ),
375 'types' => array(
376 '0' => array('showitem' => 'disable, username, password, usergroup, admin, realName, email, lang, lastlogin,
377 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.rights, userMods, allowed_languages,
378 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.mounts_and_workspaces, workspace_perms, db_mountpoints, options, file_mountpoints, file_permissions, category_perms,
379 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, lockToDomain, disableIPlock, TSconfig,
380 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime,endtime,
381 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended'),
382 '1' => array('showitem' => 'disable, username, password, usergroup, admin, realName, email, lang, lastlogin,
383 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, disableIPlock, TSconfig, db_mountpoints, options, file_mountpoints,
384 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime,endtime,
385 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended')
386 )
387 );