forked from PHORAX/formhandler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
29 lines (28 loc) · 1.03 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
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Formhandler',
'web',
'log',
'bottom',
[
\Typoheads\Formhandler\Controller\ModuleController::class => 'index, view, selectFields, export',
],
[
'access' => 'user,group',
'icon' => 'EXT:formhandler/Resources/Public/Icons/moduleicon.gif',
'labels' => 'LLL:EXT:formhandler/Resources/Private/Language/locallang_mod.xlf',
]
);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_formhandler_log');
// REGISTER ICONS FOR USE IN BACKEND WIZARD
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'formhandlerElement',
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
['source' => 'EXT:formhandler/Resources/Public/Icons/Extension.gif']
);