[BUGFIX] Move TCA modification of EXT:openid to TCA/Overrides
[Packages/TYPO3.CMS.git] / typo3 / sysext / openid / ext_tables.php
1 <?php
2 // Make sure that we are executed only from the inside of TYPO3
3 if (!defined('TYPO3_MODE')) {
4 die('Access denied.');
5 }
6
7 if (TYPO3_MODE === 'BE') {
8 // Register wizard
9 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
10 'wizard_openid',
11 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'wizard/'
12 );
13
14 // Add field to setup module
15 $GLOBALS['TYPO3_USER_SETTINGS']['columns']['tx_openid_openid'] = array(
16 'type' => 'user',
17 'table' => 'be_users',
18 'label' => 'LLL:EXT:openid/locallang_db.xlf:_MOD_user_setup.tx_openid_openid',
19 'csh' => 'tx_openid_openid',
20 'userFunc' => 'TYPO3\\CMS\\Openid\\OpenidModuleSetup->renderOpenID',
21 'access' => 'TYPO3\\CMS\\Openid\\OpenidModuleSetup'
22 );
23 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToUserSettings('tx_openid_openid', 'after:password2');
24 }