Skip to content

Commit cd314ca

Browse files
authored
Merge pull request #873 from sypets/tca-move-all-content-elements-to-one-group-again
[TASK] Move all content elements to one group again
2 parents 1a75c30 + 7cef673 commit cd314ca

1 file changed

Lines changed: 14 additions & 19 deletions

File tree

Configuration/TCA/Overrides/tt_content.php

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,22 @@
66

77
$ll = 'LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:';
88

9-
foreach (['normal', 'special', 'booking'] as $itemGroup) {
10-
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItemGroup(
11-
'tt_content',
12-
'CType',
13-
'calendarize_' . $itemGroup,
14-
$ll . 'mode.' . $itemGroup,
15-
);
16-
}
17-
18-
$pluginNameAndGroup = array_merge(
19-
array_fill_keys(
20-
['ListDetail', 'List', 'Detail', 'Search', 'Result', 'Latest', 'Single'],
21-
'calendarize_normal',
22-
),
23-
array_fill_keys(
24-
['Year', 'Quarter', 'Month', 'Week', 'Day', 'Past'],
25-
'calendarize_special',
26-
),
27-
['Booking' => 'calendarize_booking'],
9+
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItemGroup(
10+
'tt_content',
11+
'CType',
12+
'calendarize',
13+
'Calendarize',
2814
);
2915

16+
$pluginNameAndGroup = array_fill_keys(
17+
[
18+
'ListDetail', 'List', 'Detail', 'Search', 'Result', 'Latest', 'Single',
19+
'Year', 'Quarter', 'Month', 'Week', 'Day', 'Past',
20+
'Booking',
21+
],
22+
'calendarize',
23+
);
24+
3025
foreach ($pluginNameAndGroup as $pluginName => $group) {
3126
$pluginNameLowercase = strtolower($pluginName);
3227
$pluginSignature = TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(

0 commit comments

Comments
 (0)