forked from dkd/typo3-ext-hostedsolr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
26 lines (23 loc) · 882 Bytes
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
\TYPO3\CMS\Core\Utility\DebugUtility::debug($_EXTKEY,"EXTKEY");
if (TYPO3_MODE == 'BE') {
$fileExtension = version_compare(TYPO3_branch, '7.0', '>=') ? 'svg' : 'png';
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Dkd.' . $_EXTKEY,
'tools',
'administration',
'',
array(
// An array holding the controller-action-combinations that are accessible
'Administration' => 'index, create, show, edit, delete, cancel, information'
),
array(
'access' => 'admin',
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/Icons/ModuleAdministration.' . $fileExtension,
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/ModuleAdministration.xlf',
)
);
}