From 933fe72425f6e657c152950246735370f0f06dcf Mon Sep 17 00:00:00 2001 From: rojanu Date: Fri, 15 Jan 2016 14:40:10 +0000 Subject: Bug 922549: Bugzilla::Migrate.pm should provide hook in load function. r=gerv. --- Bugzilla/Hook.pm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'Bugzilla/Hook.pm') 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. =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 - An hashref containing data to be returned to L. +This hashref contains the path and prefix for the modules to be used. + +=over + +=item C - Path to where the modules are kept, on a typical extension this +would be the lib folder of the extension. + +=item C - 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, after we've confirmed -- cgit v1.2.3-24-g4f1b