Fixed issue #17147: Update plugin layout to match other content elements, credits...
[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'] = '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general,
16 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.header;header,
17 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.plugin,
18 pi_flexform;;;;1-1-1,
19 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
20 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility,
21 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access,
22 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance,
23 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames,
24 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.behaviour,
25 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended';
26
27 // Adds the redirect field to the fe_groups table
28 $tempColumns = array(
29 'felogin_redirectPid' => array(
30 'exclude' => 1,
31 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
32 'config' => array(
33 'type' => 'group',
34 'internal_type' => 'db',
35 'allowed' => 'pages',
36 'size' => 1,
37 'minitems' => 0,
38 'maxitems' => 1,
39 )
40 ),
41 );
42
43 t3lib_div::loadTCA('fe_groups');
44 t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
45 t3lib_extMgm::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1');
46
47 // Adds the redirect field and the forgotHash field to the fe_users-table
48 $tempColumns = array (
49 "felogin_redirectPid" => array (
50 "exclude" => 1,
51 "label" => "LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid",
52 "config" => array (
53 "type" => "group",
54 "internal_type" => "db",
55 "allowed" => "pages",
56 "size" => 1,
57 "minitems" => 0,
58 "maxitems" => 1,
59 )
60 ),
61 'felogin_forgotHash' => array (
62 'exclude' => 1,
63 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_forgotHash',
64 'config' => array (
65 'type' => 'passthrough',
66 )
67 ),
68 );
69
70 t3lib_div::loadTCA("fe_users");
71 t3lib_extMgm::addTCAcolumns("fe_users",$tempColumns,1);
72 t3lib_extMgm::addToAllTCAtypes("fe_users","felogin_redirectPid;;;;1-1-1");
73
74 ?>