forked from websedit/we_cookie_consent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
executable file
·27 lines (24 loc) · 1.02 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function () {
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Websedit.WeCookieConsent',
'web', // Make module a submodule of 'web'
'mod1', // Submodule key
'', // Position
[
'Backend' => 'gtmWizard, jsonDownload',
],
[
'access' => 'user,group',
'icon' => 'EXT:we_cookie_consent/Resources/Public/Icons/user_mod_mod1.svg',
'labels' => 'LLL:EXT:we_cookie_consent/Resources/Private/Language/locallang_mod1.xlf',
]
);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_wecookieconsent_domain_model_service');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_wecookieconsent_domain_model_cookie');
}
);