Index: typo3/sysext/scheduler/ext_localconf.php =================================================================== --- typo3/sysext/scheduler/ext_localconf.php (revision 7235) +++ typo3/sysext/scheduler/ext_localconf.php (working copy) @@ -10,17 +10,23 @@ 'EXT:' . $_EXTKEY . '/cli/scheduler_cli_dispatch.php', '_CLI_scheduler' ); - // Register information for the test and sleep tasks -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_scheduler_TestTask'] = array( - 'extension' => $_EXTKEY, - 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:testTask.name', - 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:testTask.description', - 'additionalFields' => 'tx_scheduler_TestTask_AdditionalFieldProvider' -); -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_scheduler_SleepTask'] = array( - 'extension' => $_EXTKEY, - 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:sleepTask.name', - 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:sleepTask.description', - 'additionalFields' => 'tx_scheduler_SleepTask_AdditionalFieldProvider' -); -?> \ No newline at end of file + // Get the extensions's configuration +$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['scheduler']); + + // If sample tasks should be shown, + // register information for the test and sleep tasks +if (!empty($extConf['showSampleTasks'])) { + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_scheduler_TestTask'] = array( + 'extension' => $_EXTKEY, + 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:testTask.name', + 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:testTask.description', + 'additionalFields' => 'tx_scheduler_TestTask_AdditionalFieldProvider' + ); + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_scheduler_SleepTask'] = array( + 'extension' => $_EXTKEY, + 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:sleepTask.name', + 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:sleepTask.description', + 'additionalFields' => 'tx_scheduler_SleepTask_AdditionalFieldProvider' + ); +} +?> Index: typo3/sysext/scheduler/ext_conf_template.txt =================================================================== --- typo3/sysext/scheduler/ext_conf_template.txt (revision 7235) +++ typo3/sysext/scheduler/ext_conf_template.txt (working copy) @@ -3,3 +3,6 @@ # cat=basic//; type=boolean; label=Enable logging: When turned on, every start and end of every executed task is logged into TYPO3's BE Log. While this is convenient when setting things up, it may clutter the BE Log in the long run. enableBELog = 1 + +# cat=basic//; type=boolean; label=Enable sample tasks: When turned on, you can use the sample, test tasks provided by the scheduler. Before turning this off, make sure you don't have any of those sample tasks currently scheduled. You will also need to clear the configuration cache. +showSampleTasks = 1