forked from TYPO3-extensions/sphinx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
39 lines (35 loc) · 1.44 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
36
37
38
39
<?php
defined('TYPO3_MODE') or die();
if (TYPO3_MODE === 'BE') {
$sphinxConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['sphinx']);
if (version_compare(TYPO3_version, '6.99.99', '<=')) {
$moduleIcon = 'ext_icon.png';
} else {
$moduleIcon = 'Resources/Public/Images/module-sphinx.png';
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Causal.' . $_EXTKEY,
'help',
'documentation',
'top',
array(
'Documentation' => 'index,dashboard,render,convert,createExtensionProject',
'InteractiveViewer' => 'render,missingRestdoc,outdatedRestdoc',
'RestEditor' => 'edit,open,save,move,remove,renameDialog,rename,createDialog,createFile,createFolder,' .
'uploadDialog,upload,' .
'projectTree,autocomplete,accordionReferences,updateIntersphinx',
'Ajax' => 'addCustomProject,createCustomProject,editCustomProject,updateCustomProject,removeCustomProject',
),
array(
'access' => 'user,group',
'icon' => 'EXT:' . $_EXTKEY . '/' . $moduleIcon,
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod_documentation.xlf',
)
);
// Register additional sprite icons
// @link http://blog.tolleiv.de/2010/07/typo3-4-4-sprites-in-your-extension/
$icons = array(
'download' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/download.png',
);
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, $_EXTKEY);
}