|
6 | 6 |
|
7 | 7 | $ll = 'LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:'; |
8 | 8 |
|
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', |
28 | 14 | ); |
29 | 15 |
|
| 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 | + |
30 | 25 | foreach ($pluginNameAndGroup as $pluginName => $group) { |
31 | 26 | $pluginNameLowercase = strtolower($pluginName); |
32 | 27 | $pluginSignature = TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( |
|
0 commit comments