TYPO3 API  SVNRelease
ext_tables.php
Go to the documentation of this file.
00001 <?php
00002 if (!defined ('TYPO3_MODE'))    die ('Access denied.');
00003 $_EXTCONF = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['felogin']);
00004 
00005 t3lib_div::loadTCA('tt_content');
00006 
00007 if(t3lib_div::int_from_ver(TYPO3_version) >= 4002000)
00008     t3lib_extMgm::addPiFlexFormValue('*','FILE:EXT:'.$_EXTKEY.'/flexform.xml','login');
00009 else
00010     t3lib_extMgm::addPiFlexFormValue('default','FILE:EXT:'.$_EXTKEY.'/flexform.xml');
00011 
00012 
00013 
00014     #replace login
00015 $TCA['tt_content']['types']['login']['showitem'] = '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general,
00016                                                     --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.header;header,
00017                                                     --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.plugin,
00018                                                     pi_flexform;;;;1-1-1,
00019                                                     --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
00020                                                     --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility,
00021                                                     --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access,
00022                                                     --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance,
00023                                                     --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames,
00024                                                     --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.behaviour,
00025                                                     --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended';
00026 
00027     // Adds the redirect field to the fe_groups table
00028 $tempColumns = array(
00029     'felogin_redirectPid' => array(
00030         'exclude' => 1,
00031         'label'  => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
00032         'config' => array(
00033             'type' => 'group',
00034             'internal_type' => 'db',
00035             'allowed' => 'pages',
00036             'size' => 1,
00037             'minitems' => 0,
00038             'maxitems' => 1,
00039         )
00040     ),
00041 );
00042 
00043 t3lib_div::loadTCA('fe_groups');
00044 t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
00045 t3lib_extMgm::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1');
00046 
00047     // Adds the redirect field and the forgotHash field to the fe_users-table
00048 $tempColumns = array (
00049     "felogin_redirectPid" => array (
00050         "exclude" => 1,
00051         "label" => "LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid",
00052         "config" => array (
00053             "type" => "group",
00054             "internal_type" => "db",
00055             "allowed" => "pages",
00056             "size" => 1,
00057             "minitems" => 0,
00058             "maxitems" => 1,
00059         )
00060     ),
00061     'felogin_forgotHash' => array (
00062         'exclude' => 1,
00063         'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_forgotHash',
00064         'config' => array (
00065             'type' => 'passthrough',
00066         )
00067     ),
00068 );
00069 
00070 t3lib_div::loadTCA("fe_users");
00071 t3lib_extMgm::addTCAcolumns("fe_users",$tempColumns,1);
00072 t3lib_extMgm::addToAllTCAtypes("fe_users","felogin_redirectPid;;;;1-1-1");
00073 
00074 ?>