forked from in2code-de/femanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
34 lines (32 loc) · 1.09 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
call_user_func(function () {
/**
* Include Backend Module
*/
if (!\In2code\Femanager\Utility\ConfigurationUtility::isDisableModuleActive() &&
!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'In2code.femanager',
'web',
'm1',
'',
[
'UserBackend' => 'list,confirmation,userLogout,confirmUser,refuseUser,listOpenUserConfirmations,resendUserConfirmationRequest'
],
[
'access' => 'user,group',
'icon' => 'EXT:femanager/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_mod.xlf',
]
);
}
/**
* Add user TSConfig
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:femanager/Configuration/UserTsConfig/BackendModule.typoscript">'
);
});