summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Hook.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-08-22 05:56:46 +0200
committermkanat%bugzilla.org <>2008-08-22 05:56:46 +0200
commit54bbf193e80b46859d9aacf62a5f05081f3f143b (patch)
tree2859aceffc50b34b4fca85db0b2f779e24b1bbe1 /Bugzilla/Hook.pm
parent67c886dd7eccb7f3136bb4f433db00905140baa3 (diff)
downloadbugzilla-54bbf193e80b46859d9aacf62a5f05081f3f143b.tar.gz
bugzilla-54bbf193e80b46859d9aacf62a5f05081f3f143b.tar.xz
Bug 437006: Add hooks to Bugzilla\Bug.pm to display additional columns
Patch By Elliotte Martin <elliotte_martin@yahoo.com> r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla/Hook.pm')
-rw-r--r--Bugzilla/Hook.pm32
1 files changed, 32 insertions, 0 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index b51f730bf..4d4a52495 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -207,6 +207,21 @@ This works just like L</auth-login_methods> except it's for
login verification methods (See L<Bugzilla::Auth::Verify>.) It also
takes a C<modules> parameter, just like L</auth-login_methods>.
+=head2 bug-columns
+
+This allows you to add new fields that will show up in every L<Bugzilla::Bug>
+object. Note that you will also need to use the L</bug-fields> hook in
+conjunction with this hook to make this work.
+
+Params:
+
+=over
+
+=item C<columns> - An arrayref containing an array of column names. Push
+your column name(s) onto the array.
+
+=back
+
=head2 bug-end_of_update
This happens at the end of L<Bugzilla::Bug/update>, after all other changes are
@@ -226,6 +241,23 @@ C<$changes-E<gt>{field} = [old, new]>
=back
+=head2 bug-fields
+
+Allows the addition of database fields from the bugs table to the standard
+list of allowable fields in a L<Bugzilla::Bug> object, so that
+you can call the field as a method.
+
+Note: You should add here the names of any fields you added in L</bug-columns>.
+
+Params:
+
+=over
+
+=item C<columns> - A arrayref containing an array of column names. Push
+your column name(s) onto the array.
+
+=back
+
=head2 buglist-columns
This happens in buglist.cgi after the standard columns have been defined and