forked from Apen/additional_scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
27 lines (21 loc) · 1.09 KB
/
ext_localconf.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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('additional_scheduler');
require_once($extensionPath . 'Classes/Utils.php');
require_once($extensionPath . 'Classes/AdditionalFieldProviderInterface.php');
$tasks = \Sng\Additionalscheduler\Utils::getTasksList();
foreach ($tasks as $task) {
require_once($extensionPath . 'Classes/Tasks/class.tx_additionalscheduler_' . $task . '.php');
require_once($extensionPath . 'Classes/Tasks/class.tx_additionalscheduler_' . $task . '_fields.php');
}
foreach ($tasks as $task) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_additionalscheduler_' . $task] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:task.' . $task . '.name',
'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:task.' . $task . '.description',
'additionalFields' => 'tx_additionalscheduler_' . $task . '_fields'
);
}
?>