ext_tables.php 1.48 KB
Newer Older
sgalinsk's avatar
sgalinsk committed
1
<?php
sgalinsk's avatar
sgalinsk committed
2

3
if (!defined('TYPO3_MODE')) {
Philipp Nowinski's avatar
Philipp Nowinski committed
4
	die('Access denied!!!');
5
}
sgalinsk's avatar
sgalinsk committed
6

Torsten Oppermann's avatar
Torsten Oppermann committed
7
if (TYPO3_MODE === 'BE') {
8
	$extConf = \SGalinski\Lfeditor\Utility\ExtensionUtility::getExtensionConfiguration();
Philipp Nowinski's avatar
Philipp Nowinski committed
9 10
	TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
		'SGalinski.lfeditor',
11
		$extConf['beMainModuleName'] ?? 'user',
Philipp Nowinski's avatar
Philipp Nowinski committed
12 13 14
		'LFEditor',
		'',
		array(
15
			'General' => 'index, general, changeSelection, generalSave, goToEditFile,
16
			switchEditingMode, refreshLanguageFileList',
Philipp Nowinski's avatar
Philipp Nowinski committed
17 18
			'EditFile' => 'editFile, changeSelection, editFileSave, refreshLanguageFileList',
			'EditConstant' => 'editConstant, changeSelection, editConstantSave, prepareEditConstant,
19
			refreshLanguageFileList',
Philipp Nowinski's avatar
Philipp Nowinski committed
20 21 22 23 24 25
			'AddConstant' => 'addConstant, changeSelection, addConstantSave, refreshLanguageFileList',
			'DeleteConstant' => 'deleteConstant, changeSelection, deleteConstantSave, refreshLanguageFileList',
			'RenameConstant' => 'renameConstant, changeSelection, renameConstantSave, refreshLanguageFileList',
			'SearchConstant' => 'searchConstant, changeSelection, searchConstantSearch, refreshLanguageFileList',
			'ViewTree' => 'viewTree, changeSelection, selectExplodeToken, refreshLanguageFileList',
			'ManageBackups' => 'manageBackups, changeSelection, deleteBackup, recoverBackup, showDifferenceBackup,
26
			deleteAllBackup, refreshLanguageFileList',
Philipp Nowinski's avatar
Philipp Nowinski committed
27 28 29 30 31 32 33
		),
		array(
			'access' => 'user,group',
			'icon' => 'EXT:lfeditor/Resources/Public/Icons/Extension.svg',
			'labels' => 'LLL:EXT:lfeditor/Resources/Private/Language/locallang_mod.xml',
		)
	);
34
}