-
Notifications
You must be signed in to change notification settings - Fork 127
/
ext_tables.php
35 lines (32 loc) · 1.08 KB
/
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
27
28
29
30
31
32
33
34
35
<?php
// Backend module is available only in TYPO3 7.6 or newer
if (version_compare(TYPO3_version, '7.6.0', '>=')) {
$realurlConfiguration = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['realurl'];
if (is_string($realurlConfiguration)) {
$realurlConfiguration = (array)@unserialize($realurlConfiguration);
}
else {
$realurlConfiguration = array();
}
$realurlModuleIcon = ((!isset($realurlConfiguration['moduleIcon']) || $realurlConfiguration['moduleIcon'] == 0) ? 'Module.svg' :
($realurlConfiguration['moduleIcon'] == 1 ? 'Module2.svg' : 'Module3.svg')
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'DmitryDulepov.Realurl',
'web',
'realurl',
'',
array(
'Overview' => 'index',
'Aliases' => 'index,edit,delete,deleteAll',
'UrlCache' => 'index,delete,deleteAll,flush',
'PathCache' => 'index,delete',
),
array(
'access' => 'user,group',
'icon' => 'EXT:realurl/Resources/Public/Icons/' . $realurlModuleIcon,
'labels' => 'LLL:EXT:realurl/Resources/Private/Language/locallang.xlf',
)
);
unset($realurlConfiguration, $realurlModuleIcon);
}