[TASK] Remove superfluous parenthesis in sysexts
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 \TYPO3\CMS\Core\Extension\ExtensionManager::addPlugin(array('LLL:EXT:indexed_search/locallang.php:mod_indexed_search', $_EXTKEY));
6 \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('tt_content');
7 $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY] = 'layout,select_key,pages';
8 // Registers the Extbase plugin to be listed in the Backend.
9 if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('extbase')) {
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\Extension\ExtensionManager::addModule('tools', 'isearch', 'after:log', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'mod/');
17 \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_info', 'TYPO3\\CMS\\IndexedSearch\\Controller\\IndexedPagesController', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'modfunc1/class.tx_indexedsearch_modfunc1.php', 'LLL:EXT:indexed_search/locallang.php:mod_indexed_search');
18 \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_info', 'TYPO3\\CMS\\IndexedSearch\\Controller\\IndexingStatisticsController', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'modfunc2/class.tx_indexedsearch_modfunc2.php', 'LLL:EXT:indexed_search/locallang.php:mod2_indexed_search');
19 }
20 \TYPO3\CMS\Core\Extension\ExtensionManager::allowTableOnStandardPages('index_config');
21 \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('index_config', 'EXT:indexed_search/locallang_csh_indexcfg.xml');
22 $TCA['index_config'] = array(
23 'ctrl' => array(
24 'title' => 'LLL:EXT:indexed_search/locallang_db.php:index_config',
25 'label' => 'title',
26 'tstamp' => 'tstamp',
27 'crdate' => 'crdate',
28 'cruser_id' => 'cruser_id',
29 'type' => 'type',
30 'default_sortby' => 'ORDER BY crdate',
31 'enablecolumns' => array(
32 'disabled' => 'hidden',
33 'starttime' => 'starttime'
34 ),
35 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tca.php',
36 'iconfile' => 'default.gif'
37 ),
38 'feInterface' => array(
39 'fe_admin_fieldList' => 'hidden, starttime, title, description, type, depth, table2index, alternative_source_pid, get_params, chashcalc, filepath, extensions'
40 )
41 );
42 ?>