forked from dercodercom/t3ext-ig_ldap_sso_auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
executable file
·47 lines (42 loc) · 1.7 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
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
defined('TYPO3_MODE') || die();
call_user_func(function () {
// Register additional sprite icons
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'extensions-ig_ldap_sso_auth-overlay-ldap-record',
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
[
'source' => 'EXT:ig_ldap_sso_auth/Resources/Public/Icons/overlay-ldap-record.png',
]
);
unset($iconRegistry);
if (TYPO3_MODE === 'BE') {
$icon = 'EXT:ig_ldap_sso_auth/Resources/Public/Icons/module-ldap.png';
// Add BE module on top of system main module
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Causal.ig_ldap_sso_auth',
'system',
'txigldapssoauthM1',
'top',
[
'Module' => implode(',', [
'index',
'status',
'search', 'updateSearchAjax', 'searchAjax',
'importFrontendUsers', 'importBackendUsers', 'importUsersAjax',
'importFrontendUserGroups', 'importBackendUserGroups', 'importUserGroupsAjax',
]),
],
[
'access' => 'admin',
'icon' => $icon,
'labels' => 'LLL:EXT:ig_ldap_sso_auth/Resources/Private/Language/locallang.xlf'
]
);
}
// Initialize "context sensitive help" (csh)
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'tx_igldapssoauth_config', 'EXT:ig_ldap_sso_auth/Resources/Private/Language/locallang_csh_db.xlf'
);
});