forked from derhansen/sf_event_mgt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
38 lines (34 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
defined('TYPO3') or die();
call_user_func(function () {
$tables = [
'tx_sfeventmgt_domain_model_event',
'tx_sfeventmgt_domain_model_location',
'tx_sfeventmgt_domain_model_organisator',
'tx_sfeventmgt_domain_model_registration',
'tx_sfeventmgt_domain_model_priceoption',
'tx_sfeventmgt_domain_model_speaker',
'tx_sfeventmgt_domain_model_registration_field',
'tx_sfeventmgt_domain_model_registration_fieldvalue',
];
foreach ($tables as $table) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages($table);
}
/**
* Register Administration Module
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'SfEventMgt',
'web',
'tx_sfeventmgt_m1',
'',
[
\DERHANSEN\SfEventMgt\Controller\AdministrationController::class => 'list, export, handleExpiredRegistrations, indexNotify, notify, settingsError',
],
[
'access' => 'user,group',
'icon' => 'EXT:sf_event_mgt/Resources/Public/Icons/module.svg',
'labels' => 'LLL:EXT:sf_event_mgt/Resources/Private/Language/locallang_modadministration.xlf',
]
);
});