A TYPO3 integration of freeCap CAPTCHA.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
1.1 KiB

<?php
defined('TYPO3_MODE') or die();
call_user_func(
function($extKey)
{
if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
/**
* Registers a Backend Module
*/
// GDlib is a requirement for the Font Maker module
if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib']) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'SJBR.' . $extKey,
// Make module a submodule of 'tools'
'tools',
// Submodule key
'FontMaker',
// Position
'',
// An array holding the controller-action combinations that are accessible
[
'FontMaker' => 'new,create'
],
[
'access' => 'user,group',
'icon' => 'EXT:sr_freecap/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:sr_freecap/Resources/Private/Language/locallang_mod.xlf'
]
);
// Add module configuration setup
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($extKey, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $extKey . '/Configuration/TypoScript/FontMaker/setup.typoscript">');
}
}
},
'sr_freecap'
);