[TASK] Remove deprecated usages of intInRange, intval_positive and int_from_ver
[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_utility_VersionNumber::convertVersionNumberToInteger(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 t3lib_extMgm::addTcaSelectItem(
13 'tt_content',
14 'CType',
15 array(
16 'LLL:EXT:cms/locallang_ttc.xml:CType.I.10',
17 'login',
18 'i/tt_content_login.gif',
19 ),
20 'mailform',
21 'after'
22 );
23
24 $TCA['tt_content']['types']['login']['showitem'] = '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general,
25 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.header;header,
26 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.plugin,
27 pi_flexform;;;;1-1-1,
28 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
29 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility,
30 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access,
31 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance,
32 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames,
33 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.behaviour,
34 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended';
35
36 // Adds the redirect field to the fe_groups table
37 $tempColumns = array(
38 'felogin_redirectPid' => array(
39 'exclude' => 1,
40 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
41 'config' => array(
42 'type' => 'group',
43 'internal_type' => 'db',
44 'allowed' => 'pages',
45 'size' => 1,
46 'minitems' => 0,
47 'maxitems' => 1,
48 )
49 ),
50 );
51
52 t3lib_div::loadTCA('fe_groups');
53 t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
54 t3lib_extMgm::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1');
55
56 // Adds the redirect field and the forgotHash field to the fe_users-table
57 $tempColumns = array (
58 "felogin_redirectPid" => array (
59 "exclude" => 1,
60 "label" => "LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid",
61 "config" => array (
62 "type" => "group",
63 "internal_type" => "db",
64 "allowed" => "pages",
65 "size" => 1,
66 "minitems" => 0,
67 "maxitems" => 1,
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
79 t3lib_div::loadTCA("fe_users");
80 t3lib_extMgm::addTCAcolumns("fe_users",$tempColumns,1);
81 t3lib_extMgm::addToAllTCAtypes("fe_users","felogin_redirectPid;;;;1-1-1");
82
83 ?>