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