*** empty log message ***
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_action / tca.php
1 <?php
2
3 // ******************************************************************
4 // sys_action
5 // ******************************************************************
6 $TCA['sys_action'] = Array (
7 'ctrl' => $TCA['sys_action']['ctrl'],
8 'interface' => Array (
9 'showRecordFieldList' => 'hidden,title,type,description,assign_to_groups'
10 ),
11 'columns' => Array (
12 'title' => Array (
13 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
14 'config' => Array (
15 'type' => 'input',
16 'size' => '25',
17 'max' => '256',
18 'eval' => 'trim,required'
19 )
20 ),
21 'description' => Array (
22 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
23 'config' => Array (
24 'type' => 'text',
25 'rows' => 10,
26 'cols' => 48
27 )
28 ),
29 'hidden' => Array (
30 'label' => 'Deactivated:',
31 'config' => Array (
32 'type' => 'check'
33 )
34 ),
35 'type' => Array (
36 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
37 'config' => Array (
38 'type' => 'select',
39 'items' => Array (
40 Array('', '0'),
41 Array('Create Backend User', '1'),
42 Array('SQL-query', '2'),
43 Array('Record list', '3'),
44 Array('Edit records', '4'),
45 Array('New Record', '5')
46 )
47 )
48 ),
49 'assign_to_groups' => Array (
50 'label' => 'Assign action to groups:',
51 'config' => Array (
52 'type' => 'select',
53 'foreign_table' => 'be_groups',
54 'foreign_table_where' => 'ORDER BY be_groups.title',
55 'MM' => 'sys_action_asgr_mm',
56 'size' => '5',
57 'minitems' => '0',
58 'maxitems' => '200'
59 )
60 ),
61 't1_userprefix' => Array (
62 'label' => 'User prefix:',
63 'config' => Array (
64 'type' => 'input',
65 'size' => '25',
66 'max' => '10',
67 'eval' => 'trim'
68 )
69 ),
70 't1_allowed_groups' => Array (
71 'label' => 'Groups which may be assigned through the action:',
72 'config' => Array (
73 'type' => 'select',
74 'foreign_table' => 'be_groups',
75 'foreign_table_where' => 'ORDER BY be_groups.title',
76 'size' => '2',
77 'maxitems' => '20'
78 )
79 ),
80 't1_create_user_dir' => Array (
81 'label' => 'Create User Home Directory:',
82 'config' => Array (
83 'type' => 'check'
84 )
85 ),
86 't1_copy_of_user' => Array (
87 'label' => 'Template user:',
88 'config' => Array (
89 'type' => 'group',
90 'internal_type' => 'db',
91 'allowed' => 'be_users',
92 'size' => '1',
93 'maxitems' => '1',
94 'minitems' => '1',
95 'show_thumbs' => '1'
96 )
97 ),
98 't3_listPid' => Array (
99 'label' => 'List pid:',
100 'config' => Array (
101 'type' => 'group',
102 'internal_type' => 'db',
103 'allowed' => 'pages',
104 'size' => '1',
105 'maxitems' => '1',
106 'minitems' => '1',
107 'show_thumbs' => '1'
108 )
109 ),
110 't3_tables' => Array (
111 'label' => 'List only table:',
112 'config' => Array (
113 'type' => 'select',
114 'special' => 'tables',
115 'items' => Array (
116 Array('','')
117 )
118 )
119 ),
120 't4_recordsToEdit' => Array (
121 'label' => 'Records to edit:',
122 'config' => Array (
123 'type' => 'group',
124 'internal_type' => 'db',
125 'allowed' => '*',
126 'prepend_tname' => 1,
127 'size' => '5',
128 'maxitems' => '50',
129 'minitems' => '1',
130 'show_thumbs' => '1'
131 )
132 ),
133
134 ),
135 'types' => Array (
136 '0' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2'),
137 '1' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t1_userprefix;;;;5-5-5,t1_copy_of_user,t1_allowed_groups,t1_create_user_dir'),
138 '2' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,'),
139 '3' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t3_listPid;;;;5-5-5,t3_tables;'),
140 '4' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t4_recordsToEdit;;;;5-5-5'),
141 '5' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t3_listPid;Where to create records:;;;5-5-5,t3_tables;Create records in table:'),
142 )
143 );
144 ?>