[TASK] Move and Namespace classes
[Packages/TYPO3.CMS.git] / typo3 / sysext / felogin / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 $_EXTCONF = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['felogin']);
6 \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('tt_content');
7 if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) >= 4002000) {
8 \TYPO3\CMS\Core\Extension\ExtensionManager::addPiFlexFormValue('*', ('FILE:EXT:' . $_EXTKEY) . '/flexform.xml', 'login');
9 } else {
10 \TYPO3\CMS\Core\Extension\ExtensionManager::addPiFlexFormValue('default', ('FILE:EXT:' . $_EXTKEY) . '/flexform.xml');
11 }
12 \TYPO3\CMS\Core\Extension\ExtensionManager::addTcaSelectItem('tt_content', 'CType', array(
13 'LLL:EXT:cms/locallang_ttc.xml:CType.I.10',
14 'login',
15 'i/tt_content_login.gif'
16 ), 'mailform', 'after');
17 $TCA['tt_content']['types']['login']['showitem'] = '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general,
18 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.header;header,
19 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.plugin,
20 pi_flexform;;;;1-1-1,
21 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
22 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility,
23 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access,
24 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance,
25 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames,
26 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.behaviour,
27 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended';
28 // Adds the redirect field to the fe_groups table
29 $tempColumns = array(
30 'felogin_redirectPid' => array(
31 'exclude' => 1,
32 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
33 'config' => array(
34 'type' => 'group',
35 'internal_type' => 'db',
36 'allowed' => 'pages',
37 'size' => 1,
38 'minitems' => 0,
39 'maxitems' => 1,
40 'wizards' => array(
41 'suggest' => array(
42 'type' => 'suggest'
43 )
44 )
45 )
46 )
47 );
48 \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('fe_groups');
49 \TYPO3\CMS\Core\Extension\ExtensionManager::addTCAcolumns('fe_groups', $tempColumns, 1);
50 \TYPO3\CMS\Core\Extension\ExtensionManager::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1', '', 'after:TSconfig');
51 // Adds the redirect field and the forgotHash field to the fe_users-table
52 $tempColumns = array(
53 'felogin_redirectPid' => array(
54 'exclude' => 1,
55 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
56 'config' => array(
57 'type' => 'group',
58 'internal_type' => 'db',
59 'allowed' => 'pages',
60 'size' => 1,
61 'minitems' => 0,
62 'maxitems' => 1,
63 'wizards' => array(
64 'suggest' => array(
65 'type' => 'suggest'
66 )
67 )
68 )
69 ),
70 'felogin_forgotHash' => array(
71 'exclude' => 1,
72 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_forgotHash',
73 'config' => array(
74 'type' => 'passthrough'
75 )
76 )
77 );
78 \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('fe_users');
79 \TYPO3\CMS\Core\Extension\ExtensionManager::addTCAcolumns('fe_users', $tempColumns, 1);
80 \TYPO3\CMS\Core\Extension\ExtensionManager::addToAllTCAtypes('fe_users', 'felogin_redirectPid;;;;1-1-1', '', 'after:TSconfig');
81 ?>