forked from sourcebroker/hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
25 lines (23 loc) · 886 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function () {
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'SourceBroker.Hugo',
// have to be `web` instead of `tools`, because it is needed the selected page UID to determine pageTsConfig for hugo
'web',
'mod1',
'',
[
'Administration' => 'index,export,exportedStructurePreview,systemEnvironmentCheckAction',
],
[
'access' => 'user,group',
'icon' => 'EXT:hugo/Resources/Public/Icons/be-module-administration.svg',
'labels' => 'LLL:EXT:hugo/Resources/Private/Language/locallang_mod.xlf',
]
);
}
}
);