[TASK] Cleanup TCA
[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 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
24 'config' => array(
25 'type' => 'check',
26 'default' => 0
27 )
28 ),
29 'starttime' => array(
30 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
31 'config' => array(
32 'type' => 'input',
33 'size' => 8,
34 'max' => 20,
35 'eval' => 'date',
36 'default' => 0,
37 )
38 ),
39 'endtime' => array(
40 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
41 'config' => array(
42 'type' => 'input',
43 'size' => 8,
44 'max' => 20,
45 'eval' => 'date',
46 'default' => 0,
47 'range' => array(
48 'upper' => mktime(0, 0, 0, 12, 31, 2020),
49 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))
50 )
51 )
52 ),
53 'sys_language_uid' => array(
54 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
55 'config' => array(
56 'type' => 'select',
57 'renderType' => 'selectSingle',
58 'foreign_table' => 'sys_language',
59 'foreign_table_where' => 'ORDER BY sys_language.title',
60 'items' => array(
61 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', '-1'),
62 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', '0')
63 ),
64 'default' => 0,
65 'showIconTable' => true,
66 )
67 ),
68 'type' => array(
69 'exclude' => true,
70 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type',
71 'config' => array(
72 'type' => 'radio',
73 'items' => array(
74 array('LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type.I.1', '2'),
75 array('LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type.I.0', '1')
76 ),
77 'default' => '2'
78 )
79 ),
80 'term' => array(
81 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.term',
82 'config' => array(
83 'type' => 'input',
84 'size' => 30,
85 'eval' => 'trim,required'
86 )
87 ),
88 'acronym' => array(
89 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.acronym',
90 'config' => array(
91 'type' => 'input',
92 'size' => 30,
93 'eval' => 'trim,required'
94 )
95 ),
96 ),
97 'types' => array(
98 '0' => array(
99 'showitem' => 'hidden, --palette--;;1, sys_language_uid, type, term, acronym',
100 ),
101 ),
102 'palettes' => array(
103 '1' => array(
104 'showitem' => 'starttime, endtime',
105 ),
106 ),
107 );