[TASK] Cleanup TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Functional / Fixtures / Extensions / test_datahandler / Configuration / TCA / tx_testdatahandler_element.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'DataHander Test Element',
5 'label' => 'title',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'languageField' => 'sys_language_uid',
10 'transOrigPointerField' => 'l10n_parent',
11 'transOrigDiffSourceField' => 'l10n_diffsource',
12 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
13 'sortby' => 'sorting',
14 'delete' => 'deleted',
15 'enablecolumns' => array(
16 'disabled' => 'hidden',
17 ),
18 'versioningWS' => true,
19 'origUid' => 't3_origuid',
20 ),
21 'interface' => array(
22 'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,title'
23 ),
24 'columns' => array(
25 'sys_language_uid' => array(
26 'exclude' => true,
27 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
28 'config' => array(
29 'type' => 'select',
30 'foreign_table' => 'sys_language',
31 'foreign_table_where' => 'ORDER BY sys_language.title',
32 'items' => array(
33 array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
34 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
35 ),
36 'default' => 0
37 )
38 ),
39 'l10n_parent' => array(
40 'displayCond' => 'FIELD:sys_language_uid:>:0',
41 'exclude' => 1,
42 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
43 'config' => array(
44 'type' => 'select',
45 'items' => array(
46 array('', 0),
47 ),
48 'foreign_table' => 'tx_irretutorial_1nff_hotel',
49 'foreign_table_where' => 'AND tx_irretutorial_1nff_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1nff_hotel.sys_language_uid IN (-1,0)',
50 'default' => 0
51 )
52 ),
53 'l10n_diffsource' => array(
54 'config' => array(
55 'type' => 'passthrough',
56 'default' => ''
57 )
58 ),
59 'hidden' => array(
60 'exclude' => true,
61 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
62 'config' => array(
63 'type' => 'check',
64 'default' => 0
65 )
66 ),
67 'title' => array(
68 'exclude' => true,
69 'l10n_mode' => 'prefixLangTitle',
70 'label' => 'Title',
71 'config' => array(
72 'type' => 'input',
73 'size' => 30,
74 'eval' => 'required',
75 )
76 ),
77 ),
78 'types' => array(
79 '0' => array('showitem' =>
80 '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title,' .
81 '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l10n_parent, l10n_diffsource, hidden;;1'
82 )
83 ),
84 'palettes' => array(
85 '1' => array('showitem' => '')
86 )
87 );