[BUGFIX] Fix wrong usage of $callback in ArrayUtility::filterRecursive
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_tables.php
old mode 100755 (executable)
new mode 100644 (file)
index 4696c27..971ad4e
@@ -1,49 +1,20 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+defined('TYPO3_MODE') or die();
 
-t3lib_extMgm::addPlugin(Array('LLL:EXT:indexed_search/locallang.php:mod_indexed_search', $_EXTKEY));
-if (TYPO3_MODE=='BE')  t3lib_extMgm::addModule('tools','isearch','after:log',t3lib_extMgm::extPath($_EXTKEY).'mod/');
-
-if (TYPO3_MODE=='BE')    {
-    t3lib_extMgm::insertModuleFunction(
-        'web_info',
-        'tx_indexedsearch_modfunc1',
-        t3lib_extMgm::extPath($_EXTKEY).'modfunc1/class.tx_indexedsearch_modfunc1.php',
-        'LLL:EXT:indexed_search/locallang.php:mod_indexed_search'
-    );
-}
-
-if (TYPO3_MODE=="BE")  {
-       t3lib_extMgm::insertModuleFunction(
-               "web_info",
-               "tx_indexedsearch_modfunc2",
-               t3lib_extMgm::extPath($_EXTKEY)."modfunc2/class.tx_indexedsearch_modfunc2.php",
-               "LLL:EXT:indexed_search/locallang.php:mod2_indexed_search"
-       );
-}
-
-t3lib_extMgm::allowTableOnStandardPages('index_config');
-
-
-$TCA['index_config'] = Array (
-    'ctrl' => Array (
-        'title' => 'LLL:EXT:indexed_search/locallang_db.php:index_config',
-        'label' => 'title',
-        'tstamp' => 'tstamp',
-        'crdate' => 'crdate',
-        'cruser_id' => 'cruser_id',
-        'type' => 'type',
-        'default_sortby' => 'ORDER BY crdate',
-        'enablecolumns' => Array (
-            'disabled' => 'hidden',
-            'starttime' => 'starttime',
-        ),
-        'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
-        'iconfile' => 'default.gif',
-    ),
-    'feInterface' => Array (
-        'fe_admin_fieldList' => 'hidden, starttime, title, description, type, depth, table2index, alternative_source_pid, get_params, chashcalc, filepath, extensions',
-    )
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+    'TYPO3.CMS.IndexedSearch',
+    'web',
+    'isearch',
+    '',
+    [
+        'Administration' => 'index,pages,externalDocuments,statistic,statisticDetails,deleteIndexedItem,saveStopwordsKeywords,wordDetail',
+    ],
+    [
+        'access' => 'admin',
+        'icon'   => 'EXT:indexed_search/Resources/Public/Icons/module-indexed_search.svg',
+        'labels' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_mod.xlf',
+    ]
 );
 
-?>
\ No newline at end of file
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('index_config');
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('index_config', 'EXT:indexed_search/Resources/Private/Language/locallang_csh_indexcfg.xlf');