forked from b13/static_info_tables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
34 lines (33 loc) · 1.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
<?php
defined('TYPO3_MODE') or die();
if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
/**
* Registers the Static Info Tables Manager backend module, if enabled
*/
if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['enableManager']) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'SJBR.static_info_tables',
// Make module a submodule of 'tools'
'tools',
// Submodule key
'Manager',
// Position
'',
// An array holding the controller-action combinations that are accessible
[
'Manager' => 'information,newLanguagePack,createLanguagePack,testForm,testFormResult,sqlDumpNonLocalizedData',
],
[
'access' => 'user,group',
'icon' => 'EXT:static_info_tables/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_mod.xlf',
]
);
// Add module configuration setup
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'static_info_tables',
'setup',
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:static_info_tables/Configuration/TypoScript/Manager/setup.txt">'
);
}
}