-
Notifications
You must be signed in to change notification settings - Fork 13
/
Reminder.php
52 lines (47 loc) · 1.76 KB
/
Reminder.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
<?php
class ReminderPlugin extends MantisPlugin {
function register() {
$this->name = 'Reminder';
$this->description = lang_get( 'reminder_plugin_desc' );
$this->version = '2.24';
$this->requires = array('MantisCore' => '2.0.0',);
$this->author = 'Cas Nuy';
$this->contact = 'Cas-at-nuy.info';
$this->url = 'https://github.com/mantisbt-plugins/Reminder';
$this->page = 'config';
}
/*** Default plugin configuration. */
function config() {
return array(
'reminder_mail_subject' => 'Following issue will be Due shortly' ,
'reminder_days_treshold' => 2,
'reminder_store_as_note' => OFF,
'reminder_sender' => '[email protected]',
'reminder_bug_status' => array(ASSIGNED),
'reminder_ignore_unset' => ON,
'reminder_ignore_past' => ON,
'reminder_handler' => ON,
'reminder_group_issues' => ON,
'reminder_group_project' => OFF,
'reminder_manager_overview' => ON,
'reminder_group_subject' => "You have issues approaching their Due Date",
'reminder_group_body1' => "Please review the following issues",
'reminder_group_body2' => "Please do not reply to this message",
'reminder_project_id' => "0",
'reminder_include' => ON,
'reminder_login' => 'admin',
'reminder_feedback_status' => array(FEEDBACK),
'reminder_subject' => 'Issues requiring your attention',
'reminder_finished' => 'Finished processing your selection',
'reminder_hours' => OFF,
'reminder_colsep' => ';',
'reminder_details' => OFF,
);
}
function init() {
plugin_event_hook( 'EVENT_MENU_MANAGE', 'remdown' );
}
function remdown() {
return array('<a href="'. plugin_page( 'bug_due_overview.php' ) . '">' . lang_get( 'reminder_download' ) . '</a>' );
}
}