forked from cobwebch/external_import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
68 lines (66 loc) · 2.5 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
// First register a main module
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Cobweb.ExternalImport',
// New main module
'ExternalImport',
'',
'',
array(),
array(
'access' => 'user,group',
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/MainModuleIcon.svg',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/MainModule.xlf'
)
);
// Register the "Data Import" backend module
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Cobweb.ExternalImport',
// Make it a submodule of 'ExternalImport'
'ExternalImport',
// Submodule key
'external_import',
// Position
'',
array(
// An array holding the controller-action-combinations that are accessible
'DataModule' => 'listSynchronizable, listNonSynchronizable, synchronize, viewConfiguration, newTask, createTask, editTask, updateTask, deleteTask'
),
array(
'access' => 'user,group',
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/DataModuleIcon.svg',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/DataModule.xlf'
)
);
// Register the "Log" backend module
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Cobweb.ExternalImport',
// Make it a submodule of 'ExternalImport'
'ExternalImport',
// Submodule key
'external_import_log',
// Position
'',
array(
// An array holding the controller-action-combinations that are accessible
'LogModule' => 'list, get'
),
array(
'access' => 'user,group',
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/LogModuleIcon.svg',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/LogModule.xlf'
)
);
// Register sprite icons for new tables
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'tx_external_import-log',
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
[
'source' => 'EXT:external_import/Resources/Public/Images/Log.png'
]
);