[TASK] Remove unused xml:space attributes in XLF
[Packages/TYPO3.CMS.git] / typo3 / sysext / cshmanual / ext_tables.php
index 27a3959..f2bd797 100644 (file)
@@ -1,7 +1,22 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE=='BE') {
-       t3lib_extMgm::addModule('help','cshmanual','top',t3lib_extMgm::extPath($_EXTKEY).'mod/');
+if (TYPO3_MODE === 'BE') {
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
+               'help',
+               'cshmanual',
+               'top',
+               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod/',
+               array(
+                       'script' => '_DISPATCH',
+                       'access' => 'user,group',
+                       'name' => 'help_cshmanual',
+                       'labels' => array(
+                               'tabs_images' => array(
+                                       'tab' => '../Resources/Public/Icons/module-cshmanual.png',
+                               ),
+                               'll_ref' => 'LLL:EXT:lang/locallang_mod_help_cshmanual.xlf',
+                       ),
+               )
+       );
 }
-?>
\ No newline at end of file