forked from svenpet90/instagram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
36 lines (32 loc) · 1.45 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
if (! defined('TYPO3')) {
die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'tx_instagram_domain_model_post',
'EXT:instagram/Resources/Private/Language/locallang_csh_tx_instagram_domain_model_post.xlf'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_instagram_domain_model_post');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'tx_instagram_domain_model_feed',
'EXT:instagram/Resources/Private/Language/locallang_csh_tx_instagram_domain_model_feed.xlf'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_instagram_domain_model_feed');
if (TYPO3) {
if (TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(TYPO3\CMS\Core\Configuration\Features::class)->isFeatureEnabled('instagram.tokenGeneratorBeModule')) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'SvenPetersen.Instagram',
'tools',
'accessTokenGenerator',
'',
[
\SvenPetersen\Instagram\Controller\TokenGeneratorController::class => 'stepOne, stepTwo, stepThree',
],
[
'access' => 'user,group',
'icon' => 'EXT:instagram/Resources/Public/Icons/instagram.jpg',
'labels' => 'LLL:EXT:instagram/Resources/Private/Language/locallang_db.xml:instagram',
]
);
}
}