[TASK] Cleanup TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / felogin / Configuration / TCA / Overrides / fe_users.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 call_user_func(function () {
5
6 // Adds the redirect field and the forgotHash field to the fe_users-table
7 $additionalColumns = [
8 'felogin_redirectPid' => [
9 'exclude' => true,
10 'label' => 'LLL:EXT:felogin/Resources/Private/Language/Database.xlf:felogin_redirectPid',
11 'config' => [
12 'type' => 'group',
13 'internal_type' => 'db',
14 'allowed' => 'pages',
15 'size' => 1,
16 'minitems' => 0,
17 'maxitems' => 1,
18 'wizards' => [
19 'suggest' => [
20 'type' => 'suggest'
21 ]
22 ]
23 ]
24 ],
25 'felogin_forgotHash' => [
26 'exclude' => true,
27 'label' => 'LLL:EXT:felogin/Resources/Private/Language/Database.xlf:felogin_forgotHash',
28 'config' => [
29 'type' => 'passthrough'
30 ]
31 ]
32 ];
33
34 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $additionalColumns);
35 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'felogin_redirectPid', '', 'after:TSconfig');
36 });