[FEATURE] Move redirect fields from Extended tab
authorJigal van Hemert <jigal@xs4all.nl>
Fri, 30 Dec 2011 06:49:55 +0000 (07:49 +0100)
committerTolleiv Nietsch <info@tolleiv.de>
Thu, 9 Feb 2012 22:18:01 +0000 (23:18 +0100)
The redirect after login fields now have a spot on the Options tab.
Minor CGL changes are also included.

Change-Id: Icb1c480f412ba8102f4d4278779727bce4b6a933
Resolves: #19847
Releases: 4.7
Reviewed-on: http://review.typo3.org/7636
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
typo3/sysext/felogin/ext_tables.php

index 492f567..8e5cbae 100644 (file)
@@ -4,10 +4,11 @@ $_EXTCONF = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['felogin']
 
 t3lib_div::loadTCA('tt_content');
 
-if(t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) >= 4002000)
-       t3lib_extMgm::addPiFlexFormValue('*','FILE:EXT:'.$_EXTKEY.'/flexform.xml','login');
-else
-       t3lib_extMgm::addPiFlexFormValue('default','FILE:EXT:'.$_EXTKEY.'/flexform.xml');
+if(t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) >= 4002000) {
+       t3lib_extMgm::addPiFlexFormValue('*', 'FILE:EXT:' . $_EXTKEY . '/flexform.xml', 'login');
+} else {
+       t3lib_extMgm::addPiFlexFormValue('default', 'FILE:EXT:' . $_EXTKEY . '/flexform.xml');
+}
 
 t3lib_extMgm::addTcaSelectItem(
        'tt_content',
@@ -56,20 +57,20 @@ $tempColumns = array(
 
 t3lib_div::loadTCA('fe_groups');
 t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
-t3lib_extMgm::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1');
+t3lib_extMgm::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1', '', 'after:TSconfig');
 
        // Adds the redirect field and the forgotHash field to the fe_users-table
-$tempColumns = array (
-       "felogin_redirectPid" => array (
-               "exclude" => 1,
-               "label" => "LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid",
-               "config" => array (
-                       "type" => "group",
-                       "internal_type" => "db",
-                       "allowed" => "pages",
-                       "size" => 1,
-                       "minitems" => 0,
-                       "maxitems" => 1,
+$tempColumns = array(
+       'felogin_redirectPid' => array(
+               'exclude' => 1,
+               'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
+               'config' => array(
+                       'type' => 'group',
+                       'internal_type' => 'db',
+                       'allowed' => 'pages',
+                       'size' => 1,
+                       'minitems' => 0,
+                       'maxitems' => 1,
                        'wizards' => array(
                                'suggest' => array(
                                        'type' => 'suggest',
@@ -77,17 +78,17 @@ $tempColumns = array (
                        ),
                )
        ),
-       'felogin_forgotHash' => array (
+       'felogin_forgotHash' => array(
                'exclude' => 1,
                'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_forgotHash',
-               'config' => array (
+               'config' => array(
                        'type' => 'passthrough',
                )
        ),
 );
 
-t3lib_div::loadTCA("fe_users");
-t3lib_extMgm::addTCAcolumns("fe_users",$tempColumns,1);
-t3lib_extMgm::addToAllTCAtypes("fe_users","felogin_redirectPid;;;;1-1-1");
+t3lib_div::loadTCA('fe_users');
+t3lib_extMgm::addTCAcolumns('fe_users', $tempColumns,1);
+t3lib_extMgm::addToAllTCAtypes('fe_users', 'felogin_redirectPid;;;;1-1-1', '', 'after:TSconfig');
 
 ?>
\ No newline at end of file