[TASK] Fix CGL violations against InlineControlStructure
[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 t3lib_extMgm::addPlugin(Array('LLL:EXT:indexed_search/locallang.php:mod_indexed_search', $_EXTKEY));
7
8 t3lib_div::loadTCA('tt_content');
9 $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY] = 'layout,select_key,pages';
10
11 // Registers the Extbase plugin to be listed in the Backend.
12 if (t3lib_extMgm::isLoaded('extbase')) {
13 $extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
14 Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi2',
15 // the title shown in the backend dropdown field
16 'Indexed Search (experimental)'
17 );
18 $pluginSignature = strtolower($extensionName) . '_pi2';
19 $TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,pages,recursive';
20 }
21
22 if (TYPO3_MODE=='BE') {
23 t3lib_extMgm::addModule('tools', 'isearch', 'after:log', t3lib_extMgm::extPath($_EXTKEY) . 'mod/');
24
25 t3lib_extMgm::insertModuleFunction(
26 'web_info',
27 'tx_indexedsearch_modfunc1',
28 t3lib_extMgm::extPath($_EXTKEY).'modfunc1/class.tx_indexedsearch_modfunc1.php',
29 'LLL:EXT:indexed_search/locallang.php:mod_indexed_search'
30 );
31 t3lib_extMgm::insertModuleFunction(
32 'web_info',
33 'tx_indexedsearch_modfunc2',
34 t3lib_extMgm::extPath($_EXTKEY).'modfunc2/class.tx_indexedsearch_modfunc2.php',
35 'LLL:EXT:indexed_search/locallang.php:mod2_indexed_search'
36 );
37 }
38
39 t3lib_extMgm::allowTableOnStandardPages('index_config');
40 t3lib_extMgm::addLLrefForTCAdescr('index_config', 'EXT:indexed_search/locallang_csh_indexcfg.xml');
41
42 $TCA['index_config'] = array(
43 'ctrl' => array(
44 'title' => 'LLL:EXT:indexed_search/locallang_db.php:index_config',
45 'label' => 'title',
46 'tstamp' => 'tstamp',
47 'crdate' => 'crdate',
48 'cruser_id' => 'cruser_id',
49 'type' => 'type',
50 'default_sortby' => 'ORDER BY crdate',
51 'enablecolumns' => array(
52 'disabled' => 'hidden',
53 'starttime' => 'starttime',
54 ),
55 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
56 'iconfile' => 'default.gif',
57 ),
58 'feInterface' => array(
59 'fe_admin_fieldList' => 'hidden, starttime, title, description, type, depth, table2index, alternative_source_pid, get_params, chashcalc, filepath, extensions',
60 )
61 );
62
63
64 // Example of crawlerhook (see also ext_localconf.php!)
65 /*
66 t3lib_div::loadTCA('index_config');
67 $TCA['index_config']['columns']['type']['config']['items'][] = Array('My Crawler hook!', 'tx_myext_example1');
68 $TCA['index_config']['types']['tx_myext_example1'] = $TCA['index_config']['types']['0'];
69 */
70
71 ?>