[TASK] Cleanup TCA select field configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_note / Configuration / TCA / sys_note.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'subject',
5 'default_sortby' => 'ORDER BY crdate',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser',
9 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
10 'delete' => 'deleted',
11 'title' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note',
12 'typeicon_classes' => array(
13 'default' => 'mimetypes-x-sys_note'
14 ),
15 'sortby' => 'sorting'
16 ),
17 'interface' => array(
18 'showRecordFieldList' => 'category,subject,message,personal'
19 ),
20 'columns' => array(
21 'category' => array(
22 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.category',
23 'config' => array(
24 'type' => 'select',
25 'renderType' => 'selectSingle',
26 'items' => array(
27 array('', '0', 'sysnote-type-0'),
28 array('LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.1', '1', 'sysnote-type-1'),
29 array('LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.3', '3', 'sysnote-type-3'),
30 array('LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.4', '4', 'sysnote-type-4'),
31 array('LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.2', '2', 'sysnote-type-2')
32 ),
33 'default' => '0'
34 )
35 ),
36 'subject' => array(
37 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.subject',
38 'config' => array(
39 'type' => 'input',
40 'size' => '40',
41 'max' => '255'
42 )
43 ),
44 'message' => array(
45 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.message',
46 'config' => array(
47 'type' => 'text',
48 'cols' => '40',
49 'rows' => '15'
50 )
51 ),
52 'personal' => array(
53 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.personal',
54 'config' => array(
55 'type' => 'check'
56 )
57 )
58 ),
59 'types' => array(
60 '0' => array('showitem' => 'category, personal, subject, message')
61 )
62 );