Skip to content

Commit

Permalink
refactor: Remove array variable and place in addModule method
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestreety committed Nov 3, 2023
1 parent 8165316 commit 3cff449
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@

if (TYPO3_MODE === 'BE') {
// Create a module section
$paymentsBillsModuleConfiguration = [
'access' => 'user,group',
'name' => 'datalisting',
'labels' => 'LLL:EXT:module_data_listing/Resources/Private/Language/locallang_mod_datalisting.xlf',
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'datalisting',
'',
'',
'',
$paymentsBillsModuleConfiguration
[
'access' => 'user,group',
'name' => 'datalisting',
'labels' => 'LLL:EXT:module_data_listing/Resources/Private/Language/locallang_mod_datalisting.xlf',
]
);

// Display our custom module sections underneath the Web section
Expand Down

0 comments on commit 3cff449

Please sign in to comment.