From 460eb160b7d524b38fe7ea340922521c333282d7 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 8 Sep 2006 06:41:32 +0000 Subject: Bug 350217: Extensions need to be able to update Bugzilla's DB schema Patch By Max Kanat-Alexander r=ghendricks, a=myk --- Bugzilla.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Bugzilla.pm') diff --git a/Bugzilla.pm b/Bugzilla.pm index 0fb223e9e..24e93edc7 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -343,6 +343,12 @@ sub custom_field_names { @{Bugzilla::Field->match({ custom=>1, obsolete=>0 })}); } +sub hook_args { + my ($class, $args) = @_; + $class->request_cache->{hook_args} = $args if $args; + return $class->request_cache->{hook_args}; +} + sub request_cache { if ($ENV{MOD_PERL}) { require Apache2::RequestUtil; @@ -556,4 +562,9 @@ The current Parameters of Bugzilla, as a hashref. If C does not exist, then we return an empty hashref. If C is unreadable or is not valid perl, we C. +=item C + +If you are running inside a code hook (see L) this +is how you get the arguments passed to the hook. + =back -- cgit v1.2.3-24-g4f1b