forked from pixelant/pxa_form_enhancement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
28 lines (26 loc) · 1.03 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
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(function () {
// Scheduler clean up of saved forms
$garbageTask = \TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class;
$table = 'tx_pxaformenhancement_domain_model_form';
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][$garbageTask]['options']['tables'][$table])) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][$garbageTask]['options']['tables'][$table] = [
'dateField' => 'crdate',
'expirePeriod' => 30,
];
}
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(trim('
module.tx_form {
settings {
yamlConfigurations {
510 = EXT:pxa_form_enhancement/Configuration/Yaml/PxaBaseSetup.yaml
520 = EXT:pxa_form_enhancement/Configuration/Yaml/PxaFormEditor.yaml
530 = EXT:pxa_form_enhancement/Configuration/Yaml/PxaFormEngine.yaml
}
}
}'
));
}
});