[TASK] Streamline addModulePath and addModule registrations
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 // Main module
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
7 'main',
8 'EXT:backend/Modules/Main/'
9 );
10
11 // Register record edit module
12 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
13 'record_edit',
14 'EXT:backend/Modules/FormEngine/'
15 );
16
17 // Register record history module
18 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
19 'record_history',
20 'EXT:backend/Modules/RecordHistory/'
21 );
22
23 // Register login frameset
24 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
25 'login_frameset',
26 'EXT:backend/Modules/LoginFrameset/'
27 );
28
29 // Register logout
30 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
31 'logout',
32 'EXT:backend/Modules/Logout/'
33 );
34
35 // Register file_navframe
36 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('file', 'file_navframe');
37 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
38 'file_navframe',
39 'EXT:backend/Modules/FileSystemNavigationFrame/'
40 );
41
42 // Register file_edit
43 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
44 'file_edit',
45 'EXT:backend/Modules/File/Edit/'
46 );
47
48 // Register file_newfolder
49 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
50 'file_newfolder',
51 'EXT:backend/Modules/File/Newfolder/'
52 );
53
54 // Register file_rename
55 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
56 'file_rename',
57 'EXT:backend/Modules/File/Rename/'
58 );
59
60 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
61 'file_replace',
62 'EXT:backend/Modules/File/Replace/'
63 );
64
65 // Register file_rename
66 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
67 'file_upload',
68 'EXT:backend/Modules/File/Upload/'
69 );
70
71 // Register tce_db
72 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
73 'tce_db',
74 'EXT:backend/Modules/File/Database/'
75 );
76
77 // Register tce_file
78 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
79 'tce_file',
80 'EXT:backend/Modules/File/Administration/'
81 );
82
83 // Register edit wizard
84 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
85 'wizard_edit',
86 'EXT:backend/Modules/Wizards/EditWizard/'
87 );
88
89 // Register add wizard
90 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
91 'wizard_add',
92 'EXT:backend/Modules/Wizards/AddWizard/'
93 );
94
95 // Register list wizard
96 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
97 'wizard_list',
98 'EXT:backend/Modules/Wizards/ListWizard/'
99 );
100
101 // Register table wizard
102 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
103 'wizard_table',
104 'EXT:backend/Modules/Wizards/TableWizard/'
105 );
106
107 // Register rte wizard
108 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
109 'wizard_rte',
110 'EXT:backend/Modules/Wizards/RteWizard/'
111 );
112
113 // Register colorpicker wizard
114 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
115 'wizard_colorpicker',
116 'EXT:backend/Modules/Wizards/ColorpickerWizard/'
117 );
118
119 // Register backend_layout wizard
120 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
121 'wizard_backend_layout',
122 'EXT:backend/Modules/Wizards/BackendLayoutWizard/'
123 );
124
125 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
126 'web',
127 'layout',
128 'top',
129 'EXT:backend/Modules/Layout/',
130 array(
131 'script' => '_DISPATCH',
132 'access' => 'user,group',
133 'name' => 'web_layout',
134 'labels' => array(
135 'tabs_images' => array(
136 'tab' => 'EXT:backend/Resources/Public/Icons/module-page.svg',
137 ),
138 'll_ref' => 'LLL:EXT:backend/Resources/Private/Language/locallang_mod.xlf',
139 ),
140 )
141 );
142
143 // Register new record
144 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
145 'db_new',
146 'EXT:backend/Modules/NewRecord/'
147 );
148
149 // Register new content element module
150 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
151 'new_content_element',
152 'EXT:backend/Modules/NewContentElement/'
153 );
154
155 // Register move element module
156 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
157 'move_element',
158 'EXT:backend/Modules/MoveElement/'
159 );
160
161 // Register show item module
162 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
163 'show_item',
164 'EXT:backend/Modules/ShowItem/'
165 );
166
167 // Register browser
168 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
169 'browser',
170 'EXT:backend/Modules/Browser/'
171 );
172
173 // Register dummy window
174 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
175 'dummy',
176 'EXT:backend/Modules/Dummy/'
177 );
178
179 // Register BackendLayoutDataProvider for PageTs
180 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['BackendLayoutDataProvider']['pagets'] = \TYPO3\CMS\Backend\Provider\PageTsBackendLayoutDataProvider::class;
181 }