forked from mantisbt-plugins/Cloneproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCloneproject.php
34 lines (29 loc) · 935 Bytes
/
Cloneproject.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
<?php
class CloneprojectPlugin extends MantisPlugin {
function register() {
$this->name = 'Clone your projects';
$this->description = 'Allows cloning of projects including all dependencies' ;
$this->version = '2.05';
$this->requires = array('MantisCore' => '2.0.0',);
$this->author = 'Cas Nuy';
$this->contact = 'Cas.Nuy@stahl.com';
$this->url = 'http://www.nuy.info/mantis2';
$this->page = 'config';
}
function config() {
return array(
'clone_hierarchy' => ON,
'clone_subprojects' => ON,
'clone_categories' => ON,
'clone_versions' => OFF,
'clone_customfields' => ON,
'clone_users' => ON,
);
}
function init() {
plugin_event_hook( 'EVENT_MANAGE_PROJECT_PAGE', 'clone_it' );
}
function clone_it($f_project_id) {
include 'plugins/Cloneproject/pages/clone_project.php';;
}
}