[TASK] Clean up phpDoc comments in typo3/sysext/
[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
7 t3lib_div::loadTCA('tt_content');
8
9 if (t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) >= 4002000) {
10 t3lib_extMgm::addPiFlexFormValue('*', 'FILE:EXT:' . $_EXTKEY . '/flexform.xml', 'login');
11 } else {
12 t3lib_extMgm::addPiFlexFormValue('default', 'FILE:EXT:' . $_EXTKEY . '/flexform.xml');
13 }
14
15 t3lib_extMgm::addTcaSelectItem(
16 'tt_content',
17 'CType',
18 array(
19 'LLL:EXT:cms/locallang_ttc.xml:CType.I.10',
20 'login',
21 'i/tt_content_login.gif',
22 ),
23 'mailform',
24 'after'
25 );
26
27 $TCA['tt_content']['types']['login']['showitem'] = '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general,
28 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.header;header,
29 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.plugin,
30 pi_flexform;;;;1-1-1,
31 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
32 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility,
33 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access,
34 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance,
35 --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames,
36 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.behaviour,
37 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended';
38
39 // Adds the redirect field to the fe_groups table
40 $tempColumns = array(
41 'felogin_redirectPid' => array(
42 'exclude' => 1,
43 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
44 'config' => array(
45 'type' => 'group',
46 'internal_type' => 'db',
47 'allowed' => 'pages',
48 'size' => 1,
49 'minitems' => 0,
50 'maxitems' => 1,
51 'wizards' => array(
52 'suggest' => array(
53 'type' => 'suggest',
54 ),
55 ),
56 )
57 ),
58 );
59
60 t3lib_div::loadTCA('fe_groups');
61 t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
62 t3lib_extMgm::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1', '', 'after:TSconfig');
63
64 // Adds the redirect field and the forgotHash field to the fe_users-table
65 $tempColumns = array(
66 'felogin_redirectPid' => array(
67 'exclude' => 1,
68 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
69 'config' => array(
70 'type' => 'group',
71 'internal_type' => 'db',
72 'allowed' => 'pages',
73 'size' => 1,
74 'minitems' => 0,
75 'maxitems' => 1,
76 'wizards' => array(
77 'suggest' => array(
78 'type' => 'suggest',
79 ),
80 ),
81 )
82 ),
83 'felogin_forgotHash' => array(
84 'exclude' => 1,
85 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_forgotHash',
86 'config' => array(
87 'type' => 'passthrough',
88 )
89 ),
90 );
91
92 t3lib_div::loadTCA('fe_users');
93 t3lib_extMgm::addTCAcolumns('fe_users', $tempColumns, 1);
94 t3lib_extMgm::addToAllTCAtypes('fe_users', 'felogin_redirectPid;;;;1-1-1', '', 'after:TSconfig');
95
96 ?>