[TASK] Sort BE usergroup records in module "Backend Users"
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / ext_tables.php
old mode 100755 (executable)
new mode 100644 (file)
index a8f361d..d8f669f
@@ -1,14 +1,20 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
-}
-
-if (TYPO3_MODE=='BE') {
-       t3lib_extMgm::addModule('tools', 'beuser', 'top', t3lib_extMgm::extPath($_EXTKEY).'mod/');
+defined('TYPO3_MODE') or die();
 
-       $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array(
-               'name' => 'tx_beuser',
-               'path' => t3lib_extMgm::extPath($_EXTKEY).'class.tx_beuser.php'
+if (TYPO3_MODE === 'BE') {
+       // Module Admin > Backend Users
+       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+               'TYPO3.CMS.' . $_EXTKEY,
+               'system',
+               'tx_Beuser',
+               'top',
+               array(
+                       'BackendUser' => 'index, addToCompareList, removeFromCompareList, compare, online, terminateBackendUserSession'
+               ),
+               array(
+                       'access' => 'admin',
+                       'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module-beuser.gif',
+                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'
+               )
        );
 }
-?>
\ No newline at end of file