Fixed bug #13590: felogin adds field felogin_forgotHash to tca but does not add field...
[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_div::int_from_ver(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
14 #replace login
15 $TCA['tt_content']['types']['login']['showitem']='CType;;4;;1-1-1, hidden, header;;3;;2-2-2, linkToTop;;;;3-3-3,
16 --div--;LLL:EXT:cms/locallang_ttc.xml:CType.I.14, pi_flexform;;;;1-1-1,
17 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime';
18
19 // Adds the redirect field to the fe_groups table
20 $tempColumns = array(
21 'felogin_redirectPid' => array(
22 'exclude' => 1,
23 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
24 'config' => array(
25 'type' => 'group',
26 'internal_type' => 'db',
27 'allowed' => 'pages',
28 'size' => 1,
29 'minitems' => 0,
30 'maxitems' => 1,
31 )
32 ),
33 );
34
35 t3lib_div::loadTCA('fe_groups');
36 t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
37 t3lib_extMgm::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1');
38
39 // Adds the redirect field and the forgotHash field to the fe_users-table
40 $tempColumns = array (
41 "felogin_redirectPid" => array (
42 "exclude" => 1,
43 "label" => "LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid",
44 "config" => array (
45 "type" => "group",
46 "internal_type" => "db",
47 "allowed" => "pages",
48 "size" => 1,
49 "minitems" => 0,
50 "maxitems" => 1,
51 )
52 ),
53 'felogin_forgotHash' => array (
54 'exclude' => 1,
55 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_forgotHash',
56 'config' => array (
57 'type' => 'passthrough',
58 )
59 ),
60 );
61
62 t3lib_div::loadTCA("fe_users");
63 t3lib_extMgm::addTCAcolumns("fe_users",$tempColumns,1);
64 t3lib_extMgm::addToAllTCAtypes("fe_users","felogin_redirectPid;;;;1-1-1");
65
66 ?>