[FEATURE] Fluid based Module Template
[Packages/TYPO3.CMS.git] / typo3 / sysext / dbal / ext_tables.php
old mode 100755 (executable)
new mode 100644 (file)
index 3e031f5..0594bcd
@@ -1,7 +1,22 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE=='BE')  {
-       t3lib_extMgm::addModule('tools','txdbalM1','',t3lib_extMgm::extPath($_EXTKEY).'mod1/');
+if (TYPO3_MODE === 'BE') {
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
+               'tools',
+               'txdbalM1',
+               '',
+               '',
+               array(
+                       'routeTarget' => \TYPO3\CMS\Dbal\Controller\ModuleController::class . '::mainAction',
+                       'access' => 'admin',
+                       'name' => 'tools_txdbalM1',
+                       'labels' => array(
+                               'tabs_images' => array(
+                                       'tab' => 'EXT:dbal/Resources/Public/Icons/module-dbal.svg',
+                               ),
+                               'll_ref' => 'LLL:EXT:dbal/Resources/Private/Language/locallang_mod.xlf',
+                       ),
+               )
+       );
 }
-?>
\ No newline at end of file