forked from barneycg/temars-eve-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_profile.xml
36 lines (33 loc) · 1.22 KB
/
mod_profile.xml
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
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>temar:TEA</id>
<version>1.00</version>
<file name="$sourcedir/Profile.php">
<operation>
<search position="replace"><![CDATA[ 'groupmembership' => array(]]></search>
<add><![CDATA[ 'tea' => array(
'label' => $txt['tea_tea'],
'file' => 'TEA.php',
'function' => 'edittea',
'enabled' => allowedTo(array('tea_edit_own', 'tea_edit_any', 'tea_view_own', 'tea_view_any')),
'sc' => 'post',
'subsections' => array(
'api' => array($txt['tea_eveapi']),
'ts' => array($txt['tea_ts']),
'jabber' => array($txt['tea_jabber']),
),
'permission' => array(
'own' => array('tea_edit_any', 'tea_edit_own', 'tea_view_any', 'tea_view_own'),
'any' => array('tea_edit_any', 'tea_view_any'),
),
),
'groupmembership' => array(]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ loadLanguage('Profile');]]></search>
<add><![CDATA[ loadLanguage('Profile');
loadLanguage('TEA');]]></add>
</operation>
</file>
</modification>