Remove obsolete file
This commit is contained in:
-37
@@ -1,37 +0,0 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') or die();
|
||||
|
||||
call_user_func(function() {
|
||||
|
||||
$budgetItems = $paxItems = $periodItems = [
|
||||
['keine Auswahl', 0]
|
||||
];
|
||||
|
||||
$extensionConfiguration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class)->get('ep_events');
|
||||
|
||||
$budgetItemsConfig = explode(';', $extensionConfiguration['configuratorBudgetOptions']);
|
||||
foreach ($budgetItemsConfig as $item)
|
||||
{
|
||||
[$value, $label] = explode(':', $item);
|
||||
$budgetItems[] = [$label, $value];
|
||||
}
|
||||
$GLOBALS['TCA']['tx_epevents_domain_model_offer']['columns']['configurator_budget']['config']['items'] = $budgetItems;
|
||||
|
||||
$paxItemsConfig = explode(';', $extensionConfiguration['configuratorPaxOptions']);
|
||||
foreach ($paxItemsConfig as $item)
|
||||
{
|
||||
[$value, $label] = explode(':', $item);
|
||||
$paxItems[] = [$label, $value];
|
||||
}
|
||||
$GLOBALS['TCA']['tx_epevents_domain_model_offer']['columns']['configurator_pax']['config']['items'] = $paxItems;
|
||||
|
||||
$periodItemsConfig = explode(';', $extensionConfiguration['configuratorPeriodOptions']);
|
||||
foreach ($periodItemsConfig as $item)
|
||||
{
|
||||
[$value, $label] = explode(':', $item);
|
||||
$periodItems[] = [$label, $value];
|
||||
}
|
||||
$GLOBALS['TCA']['tx_epevents_domain_model_offer']['columns']['configurator_period']['config']['items'] = $periodItems;
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user