[TASK] Merge submodule dbal into core
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / ext_tables.php
index 9866ffe..8a04da2 100755 (executable)
@@ -1,12 +1,22 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
-
-if (TYPO3_MODE=='BE') {
-       t3lib_extMgm::addModule('tools','beuser','top',t3lib_extMgm::extPath($_EXTKEY).'mod/');
-
-       $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array(
-               'name' => 'tx_beuser',
-               'path' => t3lib_extMgm::extPath($_EXTKEY).'class.tx_beuser.php'
+if (!defined('TYPO3_MODE')) {
+       die('Access denied.');
+}
+if (TYPO3_MODE === 'BE') {
+       // Module Admin > Backend Users
+       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+               'TYPO3.CMS.' . $_EXTKEY,
+               'tools',
+               'tx_Beuser',
+               'top',
+               array(
+                       'BackendUser' => 'index, addToCompareList, removeFromCompareList, compare, online, terminateBackendUserSession'
+               ),
+               array(
+                       'access' => 'user,group',
+                       'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
+                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'
+               )
        );
 }
 ?>
\ No newline at end of file