4c45aa9ae2ecee0232b6325324fbc5102ec616c5
[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 array(
11 'script' => '_DISPATCH',
12 'access' => 'group,user',
13 'name' => 'user_setup',
14 'labels' => array(
15 'tabs_images' => array(
16 'tab' => '../Resources/Public/Icons/module-setup.svg',
17 ),
18 'll_ref' => 'LLL:EXT:setup/mod/locallang_mod.xlf',
19 ),
20 )
21 );
22 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
23 '_MOD_user_setup',
24 'EXT:setup/locallang_csh_mod.xlf'
25 );
26
27 $GLOBALS['TYPO3_USER_SETTINGS'] = array(
28 'columns' => array(
29 'realName' => array(
30 'type' => 'text',
31 'label' => 'LLL:EXT:setup/mod/locallang.xlf:beUser_realName',
32 'table' => 'be_users',
33 'csh' => 'beUser_realName'
34 ),
35 'email' => array(
36 'type' => 'email',
37 'label' => 'LLL:EXT:setup/mod/locallang.xlf:beUser_email',
38 'table' => 'be_users',
39 'csh' => 'beUser_email'
40 ),
41 'emailMeAtLogin' => array(
42 'type' => 'check',
43 'label' => 'LLL:EXT:setup/mod/locallang.xlf:emailMeAtLogin',
44 'csh' => 'emailMeAtLogin'
45 ),
46 'password' => array(
47 'type' => 'password',
48 'label' => 'LLL:EXT:setup/mod/locallang.xlf:newPassword',
49 'table' => 'be_users',
50 'csh' => 'newPassword',
51 ),
52 'password2' => array(
53 'type' => 'password',
54 'label' => 'LLL:EXT:setup/mod/locallang.xlf:newPasswordAgain',
55 'table' => 'be_users',
56 'csh' => 'newPasswordAgain',
57 ),
58 'passwordCurrent' => array(
59 'type' => 'password',
60 'label' => 'LLL:EXT:setup/mod/locallang.xlf:passwordCurrent',
61 'table' => 'be_users',
62 'csh' => 'passwordCurrent',
63 ),
64 'lang' => array(
65 'type' => 'select',
66 'itemsProcFunc' => \TYPO3\CMS\Setup\Controller\SetupModuleController::class . '->renderLanguageSelect',
67 'label' => 'LLL:EXT:setup/mod/locallang.xlf:language',
68 'csh' => 'language'
69 ),
70 'startModule' => array(
71 'type' => 'select',
72 'itemsProcFunc' => \TYPO3\CMS\Setup\Controller\SetupModuleController::class . '->renderStartModuleSelect',
73 'label' => 'LLL:EXT:setup/mod/locallang.xlf:startModule',
74 'csh' => 'startModule'
75 ),
76 'thumbnailsByDefault' => array(
77 'type' => 'check',
78 'label' => 'LLL:EXT:setup/mod/locallang.xlf:showThumbs',
79 'csh' => 'showThumbs'
80 ),
81 'titleLen' => array(
82 'type' => 'text',
83 'label' => 'LLL:EXT:setup/mod/locallang.xlf:maxTitleLen',
84 'csh' => 'maxTitleLen'
85 ),
86 'edit_RTE' => array(
87 'type' => 'check',
88 'label' => 'LLL:EXT:setup/mod/locallang.xlf:edit_RTE',
89 'csh' => 'edit_RTE'
90 ),
91 'edit_docModuleUpload' => array(
92 'type' => 'check',
93 'label' => 'LLL:EXT:setup/mod/locallang.xlf:edit_docModuleUpload',
94 'csh' => 'edit_docModuleUpload'
95 ),
96 'showHiddenFilesAndFolders' => array(
97 'type' => 'check',
98 'label' => 'LLL:EXT:setup/mod/locallang.xlf:showHiddenFilesAndFolders',
99 'csh' => 'showHiddenFilesAndFolders'
100 ),
101 'copyLevels' => array(
102 'type' => 'text',
103 'label' => 'LLL:EXT:setup/mod/locallang.xlf:copyLevels',
104 'csh' => 'copyLevels'
105 ),
106 'recursiveDelete' => array(
107 'type' => 'check',
108 'label' => 'LLL:EXT:setup/mod/locallang.xlf:recursiveDelete',
109 'csh' => 'recursiveDelete'
110 ),
111 'resetConfiguration' => array(
112 'type' => 'button',
113 'label' => 'LLL:EXT:setup/mod/locallang.xlf:resetConfiguration',
114 'buttonlabel' => 'LLL:EXT:setup/mod/locallang.xlf:resetConfigurationShort',
115 'csh' => 'reset',
116 'onClick' => 'if (confirm(\'%s\')) { document.getElementById(\'setValuesToDefault\').value = 1; this.form.submit(); }',
117 'onClickLabels' => array(
118 'LLL:EXT:setup/mod/locallang.xlf:setToStandardQuestion'
119 )
120 ),
121 'clearSessionVars' => array(
122 'type' => 'button',
123 'access' => 'admin',
124 'label' => 'LLL:EXT:setup/mod/locallang.xlf:clearSessionVars',
125 'buttonlabel' => 'LLL:EXT:setup/mod/locallang.xlf:clearSessionVarsShort',
126 'csh' => 'reset',
127 'onClick' => 'if (confirm(\'%s\')) { document.getElementById(\'clearSessionVars\').value = 1; this.form.submit(); }',
128 'onClickLabels' => array(
129 'LLL:EXT:setup/mod/locallang.xlf:clearSessionVarsQuestion'
130 )
131 ),
132 'resizeTextareas_Flexible' => array(
133 'type' => 'check',
134 'label' => 'LLL:EXT:setup/mod/locallang.xlf:resizeTextareas_Flexible',
135 'csh' => 'resizeTextareas_Flexible'
136 ),
137 'resizeTextareas_MaxHeight' => array(
138 'type' => 'text',
139 'label' => 'LLL:EXT:setup/mod/locallang.xlf:flexibleTextareas_MaxHeight',
140 'csh' => 'flexibleTextareas_MaxHeight'
141 ),
142 'debugInWindow' => array(
143 'type' => 'check',
144 'label' => 'LLL:EXT:setup/mod/locallang.xlf:debugInWindow',
145 'access' => 'admin'
146 )
147 ),
148 'showitem' => '--div--;LLL:EXT:setup/mod/locallang.xlf:personal_data,realName,email,emailMeAtLogin,lang,
149 --div--;LLL:EXT:setup/mod/locallang.xml:passwordHeader,passwordCurrent,password,password2,
150 --div--;LLL:EXT:setup/mod/locallang.xlf:opening,startModule,thumbnailsByDefault,titleLen,
151 --div--;LLL:EXT:setup/mod/locallang.xlf:editFunctionsTab,edit_RTE,edit_docModuleUpload,showHiddenFilesAndFolders,resizeTextareas_Flexible,resizeTextareas_MaxHeight,copyLevels,recursiveDelete,resetConfiguration,clearSessionVars,
152 --div--;LLL:EXT:setup/mod/locallang.xlf:adminFunctions,debugInWindow'
153 );
154 }