forked from TomR/Csv-import-4-MantisBT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Csv_import.php
32 lines (29 loc) · 860 Bytes
/
Csv_import.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
<?php
class Csv_importPlugin extends MantisPlugin
{
function register() {
$this->name = plugin_lang_get( 'title' );
$this->description = plugin_lang_get( 'description' );
$this->version = '1.3.0b';
$this->requires = array( 'MantisCore' => '1.2.0' );
$this->author = 'Bug 4220 Team';
$this->contact = 'https://github.com/lionheart33806/Csv-import-4-MantisBT';
$this->url = 'https://github.com/lionheart33806/Csv-import-4-MantisBT';
$this->page = 'config';
}
function config() {
return array(
'import_issues_threshold' => MANAGER ,
);
}
function hooks() {
return array(
'EVENT_MENU_MANAGE' => 'csv_import_menu',
);
}
function csv_import_menu() {
return array(
'<a href="' . plugin_page( 'import_issues_page_init' ) . '">' . plugin_lang_get( 'manage_issues_link' ) . '</a>',
);
}
}