Added feature #10017: [felogin] New Method for "forgotPassword"
[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_group- and fe_users-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 'felogin_forgotHash' => array (
34 'exclude' => 1,
35 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_forgotHash',
36 'config' => array (
37 'type' => 'passthrough',
38 )
39 ),
40 );
41
42 t3lib_div::loadTCA("fe_groups");
43 t3lib_extMgm::addTCAcolumns("fe_groups",$tempColumns,1);
44 t3lib_extMgm::addToAllTCAtypes("fe_groups","felogin_redirectPid;;;;1-1-1");
45
46 t3lib_div::loadTCA("fe_users");
47 t3lib_extMgm::addTCAcolumns("fe_users",$tempColumns,1);
48 t3lib_extMgm::addToAllTCAtypes("fe_users","felogin_redirectPid;;;;1-1-1");
49
50 ?>