forked from GurneyHallack/additional_reports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
20 lines (16 loc) · 832 Bytes
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
if (!defined('TYPO3_MODE')) die ('Access denied.');
require_once(t3lib_extMgm::extPath('additional_reports') . 'Classes/class.tx_additionalreports_main.php');
require_once(t3lib_extMgm::extPath('additional_reports') . 'Classes/class.tx_additionalreports_util.php');
if (TYPO3_MODE == 'BE') {
$reports = tx_additionalreports_util::getReportsList();
foreach ($reports as $report) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports'][$_EXTKEY][$report] = array(
'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:' . $report . '_title',
'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:' . $report . '_description',
'icon' => 'EXT:' . $_EXTKEY . '/reports/reports_' . $report . '/tx_additionalreports_' . $report . '.png',
'report' => 'tx_additionalreports_' . $report
);
}
}
?>