[TASK] Use ModuleTemplate API for ext:scheduler
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 // Add module
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
7 'system',
8 'txschedulerM1',
9 '',
10 '',
11 array(
12 'routeTarget' => \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::class . '::mainAction',
13 'access' => 'admin',
14 'name' => 'system_txschedulerM1',
15 'labels' => array(
16 'tabs_images' => array(
17 'tab' => 'EXT:scheduler/Resources/Public/Icons/module-scheduler.svg',
18 ),
19 'll_ref' => 'LLL:EXT:scheduler/Resources/Private/Language/locallang_mod.xlf',
20 ),
21 )
22 );
23
24 // Add context sensitive help (csh) to the backend module
25 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
26 '_MOD_system_txschedulerM1',
27 'EXT:scheduler/Resources/Private/Language/locallang_csh_scheduler.xlf'
28 );
29 }