df04dd8db47200ceca074901a060020c437d6456
[TYPO3CMS/Extensions/sr_freecap.git] / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
5 /**
6 * Registers a Backend Module
7 */
8 // GDlib is a requirement for the Font Maker module
9 if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib']) {
10 // SJBR\SrFreecap\Domain\Model\Font uses declare(encoding='ISO-8859-2') which, since PHP 5.4, requires zend.multibyte to be set to On'.
11 // However, this has to be set in php.ini, .htaccess, httpd.conf or .user.ini, because the setting zend.multibyte is of type PHP_INI_PERDIR
12 // See http://php.net/manual/en/configuration.changes.modes.php
13 if (ini_get('zend.multibyte')) {
14 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
15 'SJBR.' . $_EXTKEY,
16 // Make module a submodule of 'tools'
17 'tools',
18 // Submodule key
19 'FontMaker',
20 // Position
21 '',
22 // An array holding the controller-action combinations that are accessible
23 array(
24 'FontMaker' => 'new,create'
25 ),
26 array(
27 'access' => 'user,group',
28 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/moduleicon.gif',
29 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'
30 )
31 );
32 }
33 }
34 }