Skip to content
Snippets Groups Projects
Commit 7e9e2b0e authored by Markus Guenther's avatar Markus Guenther
Browse files

[TASK] Use overrides to extend fe_users

parent d8219c1a
No related branches found
Tags 1.6.0
No related merge requests found
<?php
$GLOBALS['TCA']['fe_users']['columns']['usergroup']['exclude'] = TRUE;
$tabLabel = 'LLL:EXT:sg_rest/Resources/Private/Language/locallang_db.xlf:fe_users.tab.rest_authentification';
$position = '--div--;' . $tabLabel . ', tx_sgrest_auth_token, tx_sgrest_access_groups, tx_sgrest_test_mode';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', $position);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
'fe_users', [
'tx_sgrest_auth_token' => [
'exclude' => TRUE,
'label' => 'LLL:EXT:sg_rest/Resources/Private/Language/locallang_db.xlf:fe_users.tx_sgrest_auth_token',
'config' => [
'type' => 'input',
'size' => 40
],
],
'tx_sgrest_access_groups' => [
'exclude' => TRUE,
'label' => 'LLL:EXT:sg_rest/Resources/Private/Language/locallang_db.xlf:fe_users.tx_sgrest_access_groups',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'size' => 10,
'minitems' => 0,
'maxitems' => 99,
'itemsProcFunc' => 'EXT:sg_rest/Classes/TCA/TcaProvider.php:SGalinski\SgRest\TCA\TcaProvider->createAccessGroupItemList',
],
],
'tx_sgrest_test_mode' => [
'exclude' => TRUE,
'label' => 'LLL:EXT:sg_rest/Resources/Private/Language/locallang_db.xlf:fe_users.tx_sgrest_test_mode',
'config' => [
'type' => 'check',
],
],
]
);
?>
\ No newline at end of file
......@@ -4,42 +4,4 @@ if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$GLOBALS['TCA']['fe_users']['columns']['usergroup']['exclude'] = TRUE;
$tabLabel = 'LLL:EXT:sg_rest/Resources/Private/Language/locallang_db.xlf:fe_users.tab.rest_authentification';
$position = '--div--;' . $tabLabel . ', tx_sgrest_auth_token, tx_sgrest_access_groups, tx_sgrest_test_mode';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', $position);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
'fe_users', [
'tx_sgrest_auth_token' => [
'exclude' => TRUE,
'label' => 'LLL:EXT:sg_rest/Resources/Private/Language/locallang_db.xlf:fe_users.tx_sgrest_auth_token',
'config' => [
'type' => 'input',
'size' => 40
],
],
'tx_sgrest_access_groups' => [
'exclude' => TRUE,
'label' => 'LLL:EXT:sg_rest/Resources/Private/Language/locallang_db.xlf:fe_users.tx_sgrest_access_groups',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'size' => 10,
'minitems' => 0,
'maxitems' => 99,
'itemsProcFunc' => 'EXT:sg_rest/Classes/TCA/TcaProvider.php:SGalinski\SgRest\TCA\TcaProvider->createAccessGroupItemList',
],
],
'tx_sgrest_test_mode' => [
'exclude' => TRUE,
'label' => 'LLL:EXT:sg_rest/Resources/Private/Language/locallang_db.xlf:fe_users.tx_sgrest_test_mode',
'config' => [
'type' => 'check',
],
],
]
);
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment