-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
77 lines (61 loc) · 2.73 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'SaschaEnde.Users',
'login',
'[Users] Login'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'SaschaEnde.Users',
'logout',
'[Users] Logout'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'SaschaEnde.Users',
'forgot',
'[Users] Forgot password'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'SaschaEnde.Users',
'register',
'[Users] Register'
);
// ------------------------------------------------------------------------------
// Add Backend Module
// ------------------------------------------------------------------------------
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'SaschaEnde.Users',
'tools', // Make module a submodule of 'web'
'users', // Submodule key
'', // Position
[
'Admin' => 'list,importbanlist,check',
],
[
'access' => 'user,group',
'icon' => 'EXT:users/Resources/Public/Icons/Extension.png',
'labels' => 'LLL:EXT:users/Resources/Private/Language/locallang_users.xlf',
]
);
}
// --------------------------------------------
// TYPOSCRIPT
// --------------------------------------------
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('users', 'Configuration/TypoScript', 'Users');
// --------------------------------------------
// TABLES
// --------------------------------------------
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_users_domain_model_bannedhosts', 'EXT:users/Resources/Private/Language/locallang_csh_tx_users_domain_model_bannedhosts.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_users_domain_model_bannedhosts');
// --------------------------------------------
// FLEXFORM
// --------------------------------------------
\t3h\t3h::Inject()->setExtension('users')->addFlexform('login');
\t3h\t3h::Inject()->setExtension('users')->addFlexform('logout');
\t3h\t3h::Inject()->setExtension('users')->addFlexform('forgot');
\t3h\t3h::Inject()->setExtension('users')->addFlexform('register');
}
);