-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathext_localconf.php
More file actions
17 lines (14 loc) · 786 Bytes
/
ext_localconf.php
File metadata and controls
17 lines (14 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('additional_scheduler');
$tasks = \Sng\Additionalscheduler\Utils::getTasksList();
foreach ($tasks as $task) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Sng\\Additionalscheduler\\Tasks\\' . $task . 'Task'] = [
'extension' => 'additional_scheduler',
'title' => 'LLL:EXT:additional_scheduler/Resources/Private/Language/locallang.xlf:task.' . strtolower($task) . '.name',
'description' => 'LLL:EXT:additional_scheduler/Resources/Private/Language/locallang.xlf:task.' . strtolower($task) . '.description',
'additionalFields' => 'Sng\\Additionalscheduler\\Tasks\\' . $task . 'Fields',
];
}