Skip to content

Instantly share code, notes, and snippets.

@derhansen
Created January 17, 2016 19:15
Show Gist options
  • Select an option

  • Save derhansen/5a68e54c7dc056f981a8 to your computer and use it in GitHub Desktop.

Select an option

Save derhansen/5a68e54c7dc056f981a8 to your computer and use it in GitHub Desktop.
Add to Configuration/TCA/Overrides
<?php
defined('TYPO3_MODE') or die();
$fields = array (
'deleted' => array(
'exclude' => 1,
'label' => 'Deleted',
'config' => array(
'type' => 'check',
),
),
'disable' => array(
'exclude' => 1,
'label' => 'Disabled (hidden)',
'config' => array(
'type' => 'check',
),
)
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $fields);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'deleted, disable', '', '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment