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