-
Notifications
You must be signed in to change notification settings - Fork 9
/
ext_tables.php
23 lines (23 loc) · 1 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
<?php
(function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Crontab',
'system',
'Module',
'after:BeuserTxBeuser',
[
\Helhum\TYPO3\Crontab\Controller\CrontabModuleController::class => 'list, toggleSchedule, terminate, edit, delete, scheduleForImmediateExecution',
],
[
'access' => 'admin',
'icon' => 'EXT:crontab/Resources/Public/Icons/module-crontab.svg',
'labels' => 'LLL:EXT:crontab/Resources/Private/Language/locallang_mod.xlf',
]
);
// replaced by \Helhum\TYPO3\Crontab\EventListener\BeforeModuleCreationEventListener can be removed if TYPO3 11 is not supported anymore:
if (!empty($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['crontab']['hideSchedulerModule'])) {
if ($GLOBALS['TBE_MODULES']['system'] ?? null) {
$GLOBALS['TBE_MODULES']['system'] = str_replace([',txschedulerM1', ',,'], ['', ','], $GLOBALS['TBE_MODULES']['system']);
}
}
})();