This repository has been archived by the owner on Jul 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Menu.php
66 lines (58 loc) · 1.91 KB
/
Menu.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
<?php
/**
* Menu.php file
* Required
* - Add Menu entries to other modules
*
* @package Email module
*/
// Use dgettext() function instead of _() for Module specific strings translation
// See locale/README file for more information.
// Add a Menu entry to the Grades module.
if ( $RosarioModules['Grades'] ) // Verify Grades module is activated.
{
$menu['Grades']['admin'] += array(
5 => dgettext( 'Email', 'Email' ),
'Email/ReportCardsEmailParents.php' => dgettext( 'Email', 'Email Report Cards to Parents' ),
);
}
// Add a Menu entry to the Discipline module.
if ( $RosarioModules['Discipline'] ) // Verify Discipline module is activated.
{
$menu['Discipline']['admin'] += array(
3 => dgettext( 'Email', 'Email' ),
'Email/DisciplineLogEmailParents.php' => dgettext( 'Email', 'Email Discipline Log to Parents' ),
);
}
// Add a Menu entry to the Student_Billing module.
if ( $RosarioModules['Student_Billing'] ) // Verify Student_Billing module is activated.
{
$menu['Student_Billing']['admin'] += array(
2 => dgettext( 'Email', 'Email' ),
'Email/StudentBalancesEmailParents.php' => dgettext( 'Email', 'Email Student Balances to Parents' ),
);
}
// Add a Menu entry to the Students module.
if ( $RosarioModules['Students'] ) // Verify Students module is activated.
{
$menu['Students']['admin'] += array(
33 => dgettext( 'Email', 'Email' ),
'Email/EmailStudents.php' => dgettext( 'Email', 'Send Email' ),
);
$menu['Students']['teacher'] += array(
33 => dgettext( 'Email', 'Email' ),
'Email/EmailStudents.php' => dgettext( 'Email', 'Send Email' ),
);
}
// Add a Menu entry to the Users module.
if ( $RosarioModules['Users'] ) // Verify Users module is activated.
{
$menu['Users']['admin'] += array(
33 => dgettext( 'Email', 'Email' ),
'Email/EmailUsers.php' => _( 'Send Email' ),
);
$menu['Users']['teacher'] += array(
33 => dgettext( 'Email', 'Email' ),
'Email/EmailUsers.php' => _( 'Send Email' ),
);
}