added feature #6846: enable Tabs in tt_content, credits Steffen Kamper
[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;button,hidden;;1;;1-1-1, 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 );
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 t3lib_div::loadTCA("fe_users");
40 t3lib_extMgm::addTCAcolumns("fe_users",$tempColumns,1);
41 t3lib_extMgm::addToAllTCAtypes("fe_users","felogin_redirectPid;;;;1-1-1");
42
43 ?>