c15ed9d6929d861a705aa209f73c690650dbde90
[Packages/TYPO3.CMS.git] / typo3 / sysext / impexp / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 if (TYPO3_MODE == 'BE') {
6 $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array(
7 'name' => 'TYPO3\\CMS\\Impexp\\Clickmenu',
8 'path' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'class.tx_impexp_clickmenu.php'
9 );
10 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp']['tx_impexp_task'] = array(
11 'title' => 'LLL:EXT:impexp/locallang_csh.xml:.alttitle',
12 'description' => 'LLL:EXT:impexp/locallang_csh.xml:.description',
13 'icon' => 'EXT:impexp/export.gif'
14 );
15 \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('xMOD_tx_impexp', 'EXT:impexp/locallang_csh.xml');
16 // CSH labels for TYPO3 4.5 and greater. These labels override the ones set above, while still falling back to the original labels if no translation is available.
17 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:impexp/locallang_csh.xml'][] = 'EXT:impexp/locallang_csh_45.xml';
18 // Special context menu actions for the import/export module
19 $importExportActions = '
20 9000 = DIVIDER
21
22 9100 = ITEM
23 9100 {
24 name = exportT3d
25 label = LLL:EXT:impexp/app/locallang.xml:export
26 spriteIcon = actions-document-export-t3d
27 callbackAction = exportT3d
28 }
29
30 9200 = ITEM
31 9200 {
32 name = importT3d
33 label = LLL:EXT:impexp/app/locallang.xml:import
34 spriteIcon = actions-document-import-t3d
35 callbackAction = importT3d
36 }
37 ';
38 // Context menu user default configuration
39 $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultUserTSconfig'] .= ((((('
40 options.contextMenu.table {
41 virtual_root.items {
42 ' . $importExportActions) . '
43 }
44
45 pages_root.items {
46 ') . $importExportActions) . '
47 }
48
49 pages.items.1000 {
50 ') . $importExportActions) . '
51 }
52 }
53 ';
54 }
55 ?>