[BUGFIX] Use correct value for overwriteExistingFiles
[Packages/TYPO3.CMS.git] / typo3 / sysext / impexp / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array(
6 'name' => \TYPO3\CMS\Impexp\Clickmenu::class
7 );
8 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp']['TYPO3\\CMS\\Impexp\\Task\\ImportExportTask'] = array(
9 'title' => 'LLL:EXT:impexp/Resources/Private/Language/locallang_csh.xlf:.alttitle',
10 'description' => 'LLL:EXT:impexp/Resources/Private/Language/locallang_csh.xlf:.description',
11 'icon' => 'EXT:impexp/Resources/Public/Images/export.gif'
12 );
13 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_tx_impexp', 'EXT:impexp/Resources/Private/Language/locallang_csh.xlf');
14 // Special context menu actions for the import/export module
15 $importExportActions = '
16 9000 = DIVIDER
17
18 9100 = ITEM
19 9100 {
20 name = exportT3d
21 label = LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:export
22 iconName = actions-document-export-t3d
23 callbackAction = exportT3d
24 }
25
26 9200 = ITEM
27 9200 {
28 name = importT3d
29 label = LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:import
30 iconName = actions-document-import-t3d
31 callbackAction = importT3d
32 }
33 ';
34 // Context menu user default configuration
35 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
36 options.contextMenu.table {
37 virtual_root.items {
38 ' . $importExportActions . '
39 }
40
41 pages_root.items {
42 ' . $importExportActions . '
43 }
44
45 pages.items.1000 {
46 ' . $importExportActions . '
47 }
48 }
49 ');
50 // Hook into page tree context menu to remove "import" items again if user is not admin or module
51 // is not enabled for this user / group
52 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['backend']['contextMenu']['disableItems'][]
53 = \TYPO3\CMS\Impexp\Hook\ContextMenuDisableItemsHook::class . '->disableImportForNonAdmin';
54 }