[CLEANUP] Improve code quality in openid
[Packages/TYPO3.CMS.git] / typo3 / sysext / openid / Configuration / TCA / Overrides / be_users.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Prepare new columns for be_users table
5 $tempColumns = array(
6 'tx_openid_openid' => array(
7 'exclude' => 0,
8 'label' => 'LLL:EXT:openid/locallang_db.xlf:be_users.tx_openid_openid',
9 'config' => array(
10 'type' => 'input',
11 'size' => '30',
12 // Requirement: unique (BE users are unique in the whole system)
13 'eval' => 'trim,nospace,unique',
14 'wizards' => array(
15 '0' => array(
16 'type' => 'popup',
17 'title' => 'Add OpenID',
18 'module' => array(
19 'name' => 'wizard_openid'
20 ),
21 'icon' => 'EXT:openid/ext_icon_small.png',
22 'JSopenParams' => ',width=800,height=400,status=0,menubar=0,scrollbars=0',
23 )
24 ),
25 )
26 )
27 );
28 // Add new columns to be_users table
29 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('be_users', $tempColumns);
30 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('be_users', 'tx_openid_openid', '', 'after:username');
31 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:openid' . '/locallang_csh.xlf');