[TASK] Cleanup TCA select field configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Configuration / TCA / Overrides / fe_groups.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (!isset($GLOBALS['TCA']['fe_groups']['ctrl']['type'])) {
5 $tca = array(
6 'ctrl' => array(
7 'type' => 'tx_extbase_type',
8 ),
9 'columns' => array(
10 'tx_extbase_type' => array(
11 'exclude' => 1,
12 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_groups.tx_extbase_type',
13 'config' => array(
14 'type' => 'select',
15 'renderType' => 'selectSingle',
16 'items' => array(
17 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_groups.tx_extbase_type.0', '0'),
18 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_groups.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUserGroup', 'Tx_Extbase_Domain_Model_FrontendUserGroup')
19 ),
20 'size' => 1,
21 'maxitems' => 1,
22 'default' => '0'
23 )
24 )
25 ),
26 'types' => array(
27 'Tx_Extbase_Domain_Model_FrontendUserGroup' => $GLOBALS['TCA']['fe_groups']['types']['0'],
28 ),
29 );
30 $GLOBALS['TCA']['fe_groups'] = array_replace_recursive($GLOBALS['TCA']['fe_groups'], $tca);
31 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_groups', 'tx_extbase_type');
32 } else {
33 $GLOBALS['TCA']['fe_groups']['types']['Tx_Extbase_Domain_Model_FrontendUserGroup'] = $GLOBALS['TCA']['fe_groups']['types']['0'];
34 }