summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Hook.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 /Bugzilla/Hook.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 'Bugzilla/Hook.pm')
-rw-r--r--Bugzilla/Hook.pm28
1 files changed, 28 insertions, 0 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index f711907d1..6f85885c3 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -1083,6 +1083,34 @@ A hashref. The set of named parameters passed to C<create>.
=back
+=head2 migrate_modules
+
+This hook allows you to add modules to Migrate to support additional systems
+to be imported into Bugzilla
+
+Params:
+
+=over
+
+=item C<modules> - An hashref containing data to be returned to L<Bugzilla::Migrate>.
+This hashref contains the path and prefix for the modules to be used.
+
+=over
+
+=item C<path> - Path to where the modules are kept, on a typical extension this
+would be the lib folder of the extension.
+
+=item C<prefix> - Package prefix of the module to be loaded
+
+=back
+
+The definition is structured as:
+ $modules = { path => $path, prefix => $prefix };
+
+
+=back
+
+
=head2 object_before_delete
This happens in L<Bugzilla::Object/remove_from_db>, after we've confirmed