Commit 2760c860 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Add TCA field for terms_version

parent 9de60f50
Pipeline #3423 passed with stages
in 3 minutes and 21 seconds
......@@ -25,9 +25,16 @@ $feUsersColumns = [
'type' => 'input',
]
],
'terms_version' => array(
'exclude' => 0,
'label' => 'Version of accepted terms',
'config' => array(
'type' => 'input'
),
),
];
$fields = 'github, twitter, facebook,';
$fields = 'github, twitter, facebook, terms_version';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'fe_users',
......@@ -35,6 +42,12 @@ $fields = 'github, twitter, facebook,';
'',
'after:name'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'fe_users',
'terms_version',
'',
'after:tx_femanager_terms_date_of_acceptance'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $feUsersColumns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'fe_users',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment