c9f0592802f2644cd42c0c6ef3234a9e94dc0628
[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;1-1-1, header;;3;;2-2-2,pi_flexform';
16
17 // Adds the redirect-field to the fe_group- and fe_users-table
18 $tempColumns = Array (
19 "felogin_redirectPid" => Array (
20 "exclude" => 1,
21 "label" => "LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid",
22 "config" => Array (
23 "type" => "group",
24 "internal_type" => "db",
25 "allowed" => "pages",
26 "size" => 1,
27 "minitems" => 0,
28 "maxitems" => 1,
29 )
30 ),
31 );
32
33 t3lib_div::loadTCA("fe_groups");
34 t3lib_extMgm::addTCAcolumns("fe_groups",$tempColumns,1);
35 t3lib_extMgm::addToAllTCAtypes("fe_groups","felogin_redirectPid;;;;1-1-1");
36
37 t3lib_div::loadTCA("fe_users");
38 t3lib_extMgm::addTCAcolumns("fe_users",$tempColumns,1);
39 t3lib_extMgm::addToAllTCAtypes("fe_users","felogin_redirectPid;;;;1-1-1");
40
41 ?>