forked from frappant/frp_form_answers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
24 lines (22 loc) · 1.23 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function () {
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Frappant.FrpFormAnswers',
'web', // Make module a submodule of 'web'
'formanswers', // Submodule key
'after:FormFormbuilder', // Position
[\Frappant\FrpFormAnswers\Controller\FormEntryController::class => 'list, show, prepareExport, export, deleteFormname, prepareRemove, remove'],
[
'access' => 'user,group',
'icon' => 'EXT:frp_form_answers/Resources/Public/Icons/user_mod_formanswers.svg',
'labels' => 'LLL:EXT:frp_form_answers/Resources/Private/Language/locallang_formanswers.xlf',
]
);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_frpformanswers_domain_model_formentry', 'EXT:frp_form_answers/Resources/Private/Language/locallang_csh_tx_frpformanswers_domain_model_formentry.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_frpformanswers_domain_model_formentry');
}
);