This repository has been archived by the owner on May 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
ext_tables.php
executable file
·56 lines (51 loc) · 2.36 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
48
49
50
51
52
53
54
55
56
<?php
defined('TYPO3_MODE') || die();
// Register additional sprite icons
if (version_compare(TYPO3_version, '7.6', '>=')) {
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon('extensions-' . $_EXTKEY . '-overlay-ldap-record',
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
[
'source' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/overlay-ldap-record.png',
]
);
unset($iconRegistry);
} else {
$extensionRelativePath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY);
$icons = [
'overlay-ldap-record' => $extensionRelativePath . 'Resources/Public/Icons/overlay-ldap-record-62.png',
];
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, $_EXTKEY);
$GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'][] = 'is_ldap_record';
$GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames']['is_ldap_record'] = 'extensions-' . $_EXTKEY . '-overlay-ldap-record';
}
if (TYPO3_MODE === 'BE') {
if (version_compare(TYPO3_version, '7.0', '>=')) {
$icon = 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module-ldap.png';
} else {
$icon = 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module-ldap-62.png';
}
// Add BE module on top of system main module
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Causal.' . $_EXTKEY,
'system',
'txigldapssoauthM1',
'top',
[
'Module' => implode(',', [
'index',
'status',
'search', 'updateSearchAjax', 'searchAjax',
'importFrontendUsers', 'importBackendUsers', 'importUsersAjax',
'importFrontendUserGroups', 'importBackendUserGroups', 'importUserGroupsAjax',
]),
], [
'access' => 'admin',
'icon' => $icon,
'labels' => 'LLL:EXT:' . $_EXTKEY . '/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');