Initial commit - Typo3 11.5.41
This commit is contained in:
35
typo3conf/ext/sr_freecap/ext_tables.php
Normal file
35
typo3conf/ext/sr_freecap/ext_tables.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
defined('TYPO3_MODE') or die();
|
||||
|
||||
call_user_func(
|
||||
function($extKey)
|
||||
{
|
||||
/**
|
||||
* 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(
|
||||
\TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($extKey),
|
||||
// Make module a submodule of 'tools'
|
||||
'tools',
|
||||
// Submodule key
|
||||
'FontMaker',
|
||||
// Position
|
||||
'',
|
||||
// An array holding the controller-action combinations that are accessible
|
||||
[
|
||||
\SJBR\SrFreecap\Controller\FontMakerController::class => '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'
|
||||
);
|
||||
Reference in New Issue
Block a user