[CLEANUP] Correct phpDoc of FrontendLoginController->getDisplayText Function
[Packages/TYPO3.CMS.git] / typo3 / sysext / felogin / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 //replace old Login
5 $pluginContent = trim('
6 plugin.tx_felogin_pi1 = USER_INT
7 plugin.tx_felogin_pi1 {
8 userFunc = TYPO3\\CMS\\Felogin\\Controller\\FrontendLoginController->main
9 }
10 ');
11 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '
12 # Setting ' . $_EXTKEY . ' plugin TypoScript
13 ' . $pluginContent);
14 $addLine = '
15 tt_content.login = COA
16 tt_content.login {
17 10 = < lib.stdheader
18 20 >
19 20 = < plugin.tx_felogin_pi1
20 }
21 ';
22 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '# Setting ' . $_EXTKEY . ' plugin TypoScript' . $addLine . '', 43);
23
24 if (TYPO3_MODE === 'BE') {
25 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
26 mod.wizards.newContentElement.wizardItems.forms {
27 elements {
28 login {
29 icon = gfx/c_wiz/login_form.gif
30 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_title
31 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_description
32 tt_content_defValues {
33 CType = login
34 }
35 }
36 }
37 show :=addToList(login)
38 }
39 ');
40 }
41
42 // Page module hook
43 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$_EXTKEY] =
44 'EXT:' . $_EXTKEY . '/Classes/Hooks/CmsLayout.php:TYPO3\CMS\Felogin\Hooks\CmsLayout';