[TASK] Make openid return script dispatched
[Packages/TYPO3.CMS.git] / typo3 / sysext / openid / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 // Register wizard
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
7 'wizard_openid',
8 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'wizard/'
9 );
10
11 // Register openid return module
12 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
13 'openid_return',
14 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/OpenidReturn/'
15 );
16
17 // Add field to setup module
18 $GLOBALS['TYPO3_USER_SETTINGS']['columns']['tx_openid_openid'] = array(
19 'type' => 'user',
20 'table' => 'be_users',
21 'label' => 'LLL:EXT:openid/locallang_db.xlf:_MOD_user_setup.tx_openid_openid',
22 'csh' => 'tx_openid_openid',
23 'userFunc' => \TYPO3\CMS\Openid\OpenidModuleSetup::class . '->renderOpenID',
24 'access' => \TYPO3\CMS\Openid\OpenidModuleSetup::class
25 );
26 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToUserSettings('tx_openid_openid', 'after:password2');
27 }