summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Hook.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-07 22:12:31 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-07 22:12:31 +0100
commit36b5893ba963132cfcfa394aa1a67badeb3aa53e (patch)
tree06b4e7d6cbdd46e8a04d69810072fea9149ab9ac /Bugzilla/Hook.pm
parentfcf51896ea64862b43e651657ea775319c1abd31 (diff)
downloadbugzilla-36b5893ba963132cfcfa394aa1a67badeb3aa53e.tar.gz
bugzilla-36b5893ba963132cfcfa394aa1a67badeb3aa53e.tar.xz
Bug 496488: Hooks for creating, updating, and deleting groups
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Hook.pm')
-rw-r--r--Bugzilla/Hook.pm46
1 files changed, 46 insertions, 0 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index 44b5c3c58..13e435e86 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -454,6 +454,52 @@ changed flags, and search for a specific condition like C<added eq 'review-'>.
=back
+=head2 group_before_delete
+
+This happens in L<Bugzilla::Group/remove_from_db>, after we've confirmed
+that the group can be deleted, but before any rows have actually
+been removed from the database. This occurs inside a database
+transaction.
+
+Params:
+
+=over
+
+=item C<group> - The L<Bugzilla::Group> being deleted.
+
+=back
+
+=head2 group_end_of_create
+
+This happens at the end of L<Bugzilla::Group/create>, after all other
+changes are made to the database. This occurs inside a database transaction.
+
+Params:
+
+=over
+
+=item C<group> - The changed L<Bugzilla::Group> object, with all fields set
+to their updated values.
+
+=back
+
+=head2 group_end_of_update
+
+This happens at the end of L<Bugzilla::Group/update>, after all other
+changes are made to the database. This occurs inside a database transaction.
+
+Params:
+
+=over
+
+=item C<group> - The changed L<Bugzilla::Group> object, with all fields set
+to their updated values.
+
+=item C<changes> - The hash of changed fields.
+C<< $changes->{$field} = [$old, $new] >>
+
+=back
+
=head2 install_before_final_checks
Allows execution of custom code before the final checks are done in