[TASK] Cleanup EXT:indexed_search
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:indexed_search/locallang.xlf:mod_indexed_search', $_EXTKEY));
7 $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY] = 'layout,select_key,pages';
8
9 // Registers the Extbase plugin to be listed in the Backend.
10 $extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);
11 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Pi2', 'Indexed Search (experimental)');
12 $pluginSignature = strtolower($extensionName) . '_pi2';
13 $TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,pages,recursive';
14
15 if (TYPO3_MODE === 'BE') {
16 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
17 'tools',
18 'isearch',
19 'after:log',
20 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod/'
21 );
22 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
23 'web_info',
24 'TYPO3\\CMS\\IndexedSearch\\Controller\\IndexedPagesController',
25 NULL,
26 'LLL:EXT:indexed_search/locallang.xlf:mod_indexed_search'
27 );
28 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
29 'web_info',
30 'TYPO3\\CMS\\IndexedSearch\\Controller\\IndexingStatisticsController',
31 NULL,
32 'LLL:EXT:indexed_search/locallang.xlf:mod2_indexed_search'
33 );
34 }
35 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('index_config');
36 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('index_config', 'EXT:indexed_search/locallang_csh_indexcfg.xlf');