forked from TYPO3-svn-archive/pbsurveyexport
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
26 lines (24 loc) · 1.48 KB
/
ext_tables.php
File metadata and controls
26 lines (24 loc) · 1.48 KB
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
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
if (TYPO3_MODE == 'BE') {
// Adds the "Function menu module" ('third level module') "Export results" to the existing function menu for the pbsurvey backend module
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_txpbsurveyM1',
'tx_pbsurveyexport_modfunc1',
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'modfunc1/class.tx_pbsurveyexport_modfunc1.php',
'LLL:EXT:pbsurveyexport/lang/locallang_modfunc1.xml:moduleFunction'
);
// Adds the "Function menu module" ('third level module') "Delete results" to the existing function menu for the pbsurvey backend module
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_txpbsurveyM1',
'tx_pbsurveyexport_modfunc2',
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'modfunc2/class.tx_pbsurveyexport_modfunc2.php',
'LLL:EXT:pbsurveyexport/lang/locallang_modfunc2.xml:moduleFunction'
);
}
// Adds a reference for module "Export results" to a locallang file with $GLOBALS['TCA_DESCR'] labels
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_txpbsurveyM1', 'EXT:pbsurveyexport/csh/locallang_modfunc1.xml');
// Adds a reference for module "Delete results" to a locallang file with $GLOBALS['TCA_DESCR'] labels
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_txpbsurveyM2', 'EXT:pbsurveyexport/csh/locallang_modfunc2.xml');