[TASK] Merge submodule extbase into core
[Packages/TYPO3.CMS.git] / typo3 / sysext / felogin / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 $_EXTCONF = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['felogin']);
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:' . $_EXTKEY . '/flexform.xml', 'login');
7
8 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array(
9 'LLL:EXT:cms/locallang_ttc.xlf:CType.I.10',
10 'login',
11 'i/tt_content_login.gif'
12 ), 'mailform', 'after');
13 $GLOBALS['TCA']['tt_content']['types']['login']['showitem'] = '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
14 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
15 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.plugin,
16 pi_flexform;;;;1-1-1,
17 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
18 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
19 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
20 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
21 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
22 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.behaviour,
23 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended';
24 // Adds the redirect field to the fe_groups table
25 $tempColumns = array(
26 'felogin_redirectPid' => array(
27 'exclude' => 1,
28 'label' => 'LLL:EXT:felogin/locallang_db.xlf:felogin_redirectPid',
29 'config' => array(
30 'type' => 'group',
31 'internal_type' => 'db',
32 'allowed' => 'pages',
33 'size' => 1,
34 'minitems' => 0,
35 'maxitems' => 1,
36 'wizards' => array(
37 'suggest' => array(
38 'type' => 'suggest'
39 )
40 )
41 )
42 )
43 );
44 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_groups', $tempColumns, 1);
45 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1', '', 'after:TSconfig');
46 // Adds the redirect field and the forgotHash field to the fe_users-table
47 $tempColumns = array(
48 'felogin_redirectPid' => array(
49 'exclude' => 1,
50 'label' => 'LLL:EXT:felogin/locallang_db.xlf:felogin_redirectPid',
51 'config' => array(
52 'type' => 'group',
53 'internal_type' => 'db',
54 'allowed' => 'pages',
55 'size' => 1,
56 'minitems' => 0,
57 'maxitems' => 1,
58 'wizards' => array(
59 'suggest' => array(
60 'type' => 'suggest'
61 )
62 )
63 )
64 ),
65 'felogin_forgotHash' => array(
66 'exclude' => 1,
67 'label' => 'LLL:EXT:felogin/locallang_db.xlf:felogin_forgotHash',
68 'config' => array(
69 'type' => 'passthrough'
70 )
71 )
72 );
73 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns, 1);
74 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'felogin_redirectPid;;;;1-1-1', '', 'after:TSconfig');
75 ?>