From 36b5893ba963132cfcfa394aa1a67badeb3aa53e Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sun, 7 Feb 2010 13:12:31 -0800 Subject: Bug 496488: Hooks for creating, updating, and deleting groups r=mkanat, a=mkanat (module owner) --- Bugzilla/Hook.pm | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'Bugzilla/Hook.pm') 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. =back +=head2 group_before_delete + +This happens in L, 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 - The L being deleted. + +=back + +=head2 group_end_of_create + +This happens at the end of L, after all other +changes are made to the database. This occurs inside a database transaction. + +Params: + +=over + +=item C - The changed L object, with all fields set +to their updated values. + +=back + +=head2 group_end_of_update + +This happens at the end of L, after all other +changes are made to the database. This occurs inside a database transaction. + +Params: + +=over + +=item C - The changed L object, with all fields set +to their updated values. + +=item C - 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 -- cgit v1.2.3-24-g4f1b