forked from IchHabRecht/hosts_pattern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
32 lines (30 loc) · 1005 Bytes
/
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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
call_user_func(
function ($extKey) {
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'IchHabRecht.hosts_pattern',
'tools',
'HostsPattern',
'',
[
'Domain' => 'index',
],
[
'access' => 'admin',
'icon' => 'EXT:' . $extKey . '/Resources/Public/Icons/module-hostspattern.svg',
'labels' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_mod.xml',
]
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'hosts_pattern',
'setup',
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $extKey . '/Configuration/TypoScript/setup.txt">'
);
}
},
$_EXTKEY
);