[BUGFIX] Awkward default IP filter
[TYPO3CMS/Extensions/devlog.git] / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_devlog_domain_model_entry');
7
8 // Add context sensitive help (csh) to the devlog table
9 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
10 'tx_devlog_domain_model_entry',
11 'EXT:devlog/Resources/Private/Language/locallang_csh_txdevlog.xlf'
12 );
13
14 // Load the module only in the BE context
15 if (TYPO3_MODE === 'BE') {
16 // Register the "Data Import" backend module
17 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
18 'Devlog.Devlog',
19 // Make it a submodule of 'ExternalImport'
20 'system',
21 // Submodule key
22 'devlog',
23 // Position
24 'after:BelogLog',
25 array(
26 // An array holding the controller-action-combinations that are accessible
27 'ListModule' => 'index,delete'
28 ),
29 array(
30 'access' => 'admin',
31 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/ModuleIcon.svg',
32 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/Module.xlf'
33 )
34 );
35 }