bdcef681781d685aa7e9eb633dbae17ce69ad7aa
[Packages/TYPO3.CMS.git] / typo3 / sysext / setup / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
6 'user',
7 'setup',
8 'after:task',
9 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod/'
10 );
11 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
12 '_MOD_user_setup',
13 'EXT:setup/locallang_csh_mod.xlf'
14 );
15
16 $GLOBALS['TYPO3_USER_SETTINGS'] = array(
17 'columns' => array(
18 'realName' => array(
19 'type' => 'text',
20 'label' => 'LLL:EXT:setup/mod/locallang.xlf:beUser_realName',
21 'table' => 'be_users',
22 'csh' => 'beUser_realName'
23 ),
24 'email' => array(
25 'type' => 'email',
26 'label' => 'LLL:EXT:setup/mod/locallang.xlf:beUser_email',
27 'table' => 'be_users',
28 'csh' => 'beUser_email'
29 ),
30 'emailMeAtLogin' => array(
31 'type' => 'check',
32 'label' => 'LLL:EXT:setup/mod/locallang.xlf:emailMeAtLogin',
33 'csh' => 'emailMeAtLogin'
34 ),
35 'password' => array(
36 'type' => 'password',
37 'label' => 'LLL:EXT:setup/mod/locallang.xlf:newPassword',
38 'table' => 'be_users',
39 'csh' => 'newPassword',
40 ),
41 'password2' => array(
42 'type' => 'password',
43 'label' => 'LLL:EXT:setup/mod/locallang.xlf:newPasswordAgain',
44 'table' => 'be_users',
45 'csh' => 'newPasswordAgain',
46 ),
47 'lang' => array(
48 'type' => 'select',
49 'itemsProcFunc' => \TYPO3\CMS\Setup\Controller\SetupModuleController::class . '->renderLanguageSelect',
50 'label' => 'LLL:EXT:setup/mod/locallang.xlf:language',
51 'csh' => 'language'
52 ),
53 'startModule' => array(
54 'type' => 'select',
55 'itemsProcFunc' => \TYPO3\CMS\Setup\Controller\SetupModuleController::class . '->renderStartModuleSelect',
56 'label' => 'LLL:EXT:setup/mod/locallang.xlf:startModule',
57 'csh' => 'startModule'
58 ),
59 'thumbnailsByDefault' => array(
60 'type' => 'check',
61 'label' => 'LLL:EXT:setup/mod/locallang.xlf:showThumbs',
62 'csh' => 'showThumbs'
63 ),
64 'titleLen' => array(
65 'type' => 'text',
66 'label' => 'LLL:EXT:setup/mod/locallang.xlf:maxTitleLen',
67 'csh' => 'maxTitleLen'
68 ),
69 'edit_RTE' => array(
70 'type' => 'check',
71 'label' => 'LLL:EXT:setup/mod/locallang.xlf:edit_RTE',
72 'csh' => 'edit_RTE'
73 ),
74 'edit_docModuleUpload' => array(
75 'type' => 'check',
76 'label' => 'LLL:EXT:setup/mod/locallang.xlf:edit_docModuleUpload',
77 'csh' => 'edit_docModuleUpload'
78 ),
79 'showHiddenFilesAndFolders' => array(
80 'type' => 'check',
81 'label' => 'LLL:EXT:setup/mod/locallang.xlf:showHiddenFilesAndFolders',
82 'csh' => 'showHiddenFilesAndFolders'
83 ),
84 'copyLevels' => array(
85 'type' => 'text',
86 'label' => 'LLL:EXT:setup/mod/locallang.xlf:copyLevels',
87 'csh' => 'copyLevels'
88 ),
89 'recursiveDelete' => array(
90 'type' => 'check',
91 'label' => 'LLL:EXT:setup/mod/locallang.xlf:recursiveDelete',
92 'csh' => 'recursiveDelete'
93 ),
94 'resetConfiguration' => array(
95 'type' => 'button',
96 'label' => 'LLL:EXT:setup/mod/locallang.xlf:resetConfiguration',
97 'buttonlabel' => 'LLL:EXT:setup/mod/locallang.xlf:resetConfigurationShort',
98 'csh' => 'reset',
99 'onClick' => 'if (confirm(\'%s\')) { document.getElementById(\'setValuesToDefault\').value = 1; this.form.submit(); }',
100 'onClickLabels' => array(
101 'LLL:EXT:setup/mod/locallang.xlf:setToStandardQuestion'
102 )
103 ),
104 'clearSessionVars' => array(
105 'type' => 'button',
106 'access' => 'admin',
107 'label' => 'LLL:EXT:setup/mod/locallang.xlf:clearSessionVars',
108 'buttonlabel' => 'LLL:EXT:setup/mod/locallang.xlf:clearSessionVarsShort',
109 'csh' => 'reset',
110 'onClick' => 'if (confirm(\'%s\')) { document.getElementById(\'clearSessionVars\').value = 1; this.form.submit(); }',
111 'onClickLabels' => array(
112 'LLL:EXT:setup/mod/locallang.xlf:clearSessionVarsQuestion'
113 )
114 ),
115 'resizeTextareas' => array(
116 'type' => 'check',
117 'label' => 'LLL:EXT:setup/mod/locallang.xlf:resizeTextareas',
118 'csh' => 'resizeTextareas'
119 ),
120 'resizeTextareas_Flexible' => array(
121 'type' => 'check',
122 'label' => 'LLL:EXT:setup/mod/locallang.xlf:resizeTextareas_Flexible',
123 'csh' => 'resizeTextareas_Flexible'
124 ),
125 'resizeTextareas_MaxHeight' => array(
126 'type' => 'text',
127 'label' => 'LLL:EXT:setup/mod/locallang.xlf:flexibleTextareas_MaxHeight',
128 'csh' => 'flexibleTextareas_MaxHeight'
129 ),
130 'debugInWindow' => array(
131 'type' => 'check',
132 'label' => 'LLL:EXT:setup/mod/locallang.xlf:debugInWindow',
133 'access' => 'admin'
134 )
135 ),
136 'showitem' => '--div--;LLL:EXT:setup/mod/locallang.xlf:personal_data,realName,email,emailMeAtLogin,password,password2,lang,
137 --div--;LLL:EXT:setup/mod/locallang.xlf:opening,startModule,thumbnailsByDefault,titleLen,
138 --div--;LLL:EXT:setup/mod/locallang.xlf:editFunctionsTab,edit_RTE,edit_docModuleUpload,showHiddenFilesAndFolders,resizeTextareas,resizeTextareas_Flexible,resizeTextareas_MaxHeight,copyLevels,recursiveDelete,resetConfiguration,clearSessionVars,
139 --div--;LLL:EXT:setup/mod/locallang.xlf:adminFunctions,debugInWindow'
140 );
141 }