forked from extcode/cart_products
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
42 lines (37 loc) · 1.16 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
35
36
37
38
39
40
41
42
<?php
defined('TYPO3_MODE') or die();
$iconPath = 'EXT:cart_products/Resources/Public/Icons/';
$_LLL_be = 'LLL:EXT:cart_products/Resources/Private/Language/locallang_be.xlf:';
/**
* Register Backend Modules
*/
if (TYPO3_MODE === 'BE') {
if (!isset($TBE_MODULES['Cart'])) {
$temp_TBE_MODULES = [];
foreach ($TBE_MODULES as $key => $val) {
if ($key == 'file') {
$temp_TBE_MODULES[$key] = $val;
$temp_TBE_MODULES['Cart'] = '';
} else {
$temp_TBE_MODULES[$key] = $val;
}
}
$TBE_MODULES = $temp_TBE_MODULES;
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Extcode.cart_products',
'Cart',
'Products',
'',
[
'Backend\Product' => 'list, show,',
'Backend\Variant' => 'list, show, edit, update',
],
[
'access' => 'user, group',
'icon' => $iconPath . 'module_products.svg',
'labels' => $_LLL_be . 'tx_cartproducts.module.products',
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
]
);
}