summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-09-08 08:41:32 +0200
committermkanat%bugzilla.org <>2006-09-08 08:41:32 +0200
commit460eb160b7d524b38fe7ea340922521c333282d7 (patch)
tree47c5486a0876cdab4871b605c15787719153b3c6 /Bugzilla.pm
parent666dd28a656b6893c96e837517e5ee65e19e1447 (diff)
downloadbugzilla-460eb160b7d524b38fe7ea340922521c333282d7.tar.gz
bugzilla-460eb160b7d524b38fe7ea340922521c333282d7.tar.xz
Bug 350217: Extensions need to be able to update Bugzilla's DB schema
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=ghendricks, a=myk
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm11
1 files changed, 11 insertions, 0 deletions
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<data/params>
does not exist, then we return an empty hashref. If C<data/params>
is unreadable or is not valid perl, we C<die>.
+=item C<hook_args>
+
+If you are running inside a code hook (see L<Bugzilla::Hook>) this
+is how you get the arguments passed to the hook.
+
=back