Added feature #13296: Scheduler: Add option to disable the sample tasks
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / ext_localconf.php
1 <?php
2 /* $Id$ */
3
4 if (!defined ('TYPO3_MODE')) {
5 die ('Access denied.');
6 }
7
8 // Register the Scheduler as a possible key for CLI calls
9 $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array(
10 'EXT:' . $_EXTKEY . '/cli/scheduler_cli_dispatch.php', '_CLI_scheduler'
11 );
12
13 // Get the extensions's configuration
14 $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['scheduler']);
15
16 // If sample tasks should be shown,
17 // register information for the test and sleep tasks
18 if (!empty($extConf['showSampleTasks'])) {
19 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_scheduler_TestTask'] = array(
20 'extension' => $_EXTKEY,
21 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:testTask.name',
22 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:testTask.description',
23 'additionalFields' => 'tx_scheduler_TestTask_AdditionalFieldProvider'
24 );
25 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_scheduler_SleepTask'] = array(
26 'extension' => $_EXTKEY,
27 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:sleepTask.name',
28 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:sleepTask.description',
29 'additionalFields' => 'tx_scheduler_SleepTask_AdditionalFieldProvider'
30 );
31 }
32 ?>