-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathext_localconf.php
28 lines (23 loc) · 1.18 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
28
<?php
if (!defined('TYPO3')) {
exit('Access denied.');
}
$tempPath = \Sys25\RnBase\Utility\Extensions::extPath('mkmailer');
require_once $tempPath.'services/ext_localconf.php';
// Einbindung einer PageTSConfig
\Sys25\RnBase\Utility\Extensions::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:mkmailer/mod1/pageTSconfig.txt">');
if (\Sys25\RnBase\Utility\Extensions::isLoaded('mklib')) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_mkmailer_scheduler_SendMails'] = [
'extension' => 'mkmailer',
'title' => 'LLL:EXT:mkmailer/Resources/Private/Language/Scheduler/locallang.xlf:scheduler_SendMails_name',
'description' => 'LLL:EXT:mkmailer/Resources/Private/Language/Scheduler/locallang.xlf:scheduler_SendMails_taskinfo',
'additionalFields' => 'tx_mkmailer_scheduler_SendMailsFieldProvider',
];
}
$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$dispatcher->connect(
\TYPO3\CMS\Core\Database\ReferenceIndex::class,
'shouldExcludeTableFromReferenceIndex',
\DMK\Mkmailer\Event\Slots\ReferenceIndexSlot::class,
'shouldExcludeTableFromReferenceIndex'
);