forked from vertexvaar/logs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
executable file
·26 lines (23 loc) · 862 Bytes
/
ext_tables.php
File metadata and controls
executable file
·26 lines (23 loc) · 862 Bytes
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
call_user_func(
function () {
$configuration = (array)@unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['logs']);
if (empty($configuration['moduleConfig'])) {
$configuration['moduleConfig'] = 'tools';
}
if ($configuration['moduleConfig'] !== 'disable') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'VerteXVaaR.Logs',
$configuration['moduleConfig'],
'tx_logs_m1',
'',
['Log' => 'filter,delete'],
[
'access' => 'user,group',
'icon' => 'EXT:logs/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:logs/Resources/Private/Language/locallang.module.xlf',
]
);
}
}
);