summaryrefslogtreecommitdiffstats
path: root/extensions/Example/Extension.pm
diff options
context:
space:
mode:
authorrojanu <aliustek@gmail.com>2016-01-15 15:40:10 +0100
committerGervase Markham <gerv@mozilla.org>2016-01-15 15:40:10 +0100
commit933fe72425f6e657c152950246735370f0f06dcf (patch)
tree93dba11fac36dae4e3be00d214427028cc6181fc /extensions/Example/Extension.pm
parenta0c3ade6d450ee0403612199a96db5bb8a577006 (diff)
downloadbugzilla-933fe72425f6e657c152950246735370f0f06dcf.tar.gz
bugzilla-933fe72425f6e657c152950246735370f0f06dcf.tar.xz
Bug 922549: Bugzilla::Migrate.pm should provide hook in load function. r=gerv.
Diffstat (limited to 'extensions/Example/Extension.pm')
-rw-r--r--extensions/Example/Extension.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm
index 1649957fd..ad96066f7 100644
--- a/extensions/Example/Extension.pm
+++ b/extensions/Example/Extension.pm
@@ -635,6 +635,12 @@ sub mailer_before_send {
$email->header_set('X-Bugzilla-Example-Header', 'Example');
}
+sub migrate_modules {
+ my ($self, $args) = @_;
+ $args->{path} = bz_locations->{'extensionsdir'} . "/Example/lib/Migrate";
+ $args->{prefix} = "Bugzilla::Extension::Example:Migrate";
+}
+
sub object_before_create {
my ($self, $args) = @_;