-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPurger.php
More file actions
31 lines (25 loc) · 806 Bytes
/
Purger.php
File metadata and controls
31 lines (25 loc) · 806 Bytes
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
<?php
class PurgerPlugin extends MantisPlugin {
function register() {
$this->name = lang_get( 'plugin_Purger_name' );
$this->description = lang_get( 'plugin_Purger_description' );
$this->version = '1.0.0';
$this->requires = array('MantisCore' => '2.0.0',);
$this->author = 'Cas Nuy';
$this->contact = 'Cas-at-nuy.info';
$this->url = 'https://github.com/mantisbt-plugins/Purger';
$this->page = 'config';
}
function config() {
return array(
'manage_threshold' => ADMINISTRATOR,
'status' => 90,
);
}
function init() {
plugin_event_hook( 'EVENT_MENU_MANAGE', 'purge_them' );
}
function purge_them() {
return array( '<a href="' . plugin_page( 'purge_issues' ) . '">' . lang_get( 'plugin_Purger_manage' ) . '</a>', );
}
}