TYPO3  7.6
extbase/Configuration/TCA/Overrides/fe_users.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 if (!isset($GLOBALS['TCA']['fe_users']['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_users.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_users.tx_extbase_type.0', '0'),
18  array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_users.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUser', 'Tx_Extbase_Domain_Model_FrontendUser')
19  ),
20  'size' => 1,
21  'maxitems' => 1,
22  'default' => '0'
23  )
24  )
25  ),
26  'types' => array(
27  'Tx_Extbase_Domain_Model_FrontendUser' => $GLOBALS['TCA']['fe_users']['types']['0'],
28  ),
29  );
30  $GLOBALS['TCA']['fe_users'] = array_replace_recursive($GLOBALS['TCA']['fe_users'], $tca);
31  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'tx_extbase_type');
32 } else {
33  $GLOBALS['TCA']['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $GLOBALS['TCA']['fe_users']['types']['0'];
34 }