From 2a444f9d50535445a84367a9833bd87a07752d0a Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Thu, 1 Apr 2010 22:42:42 -0700 Subject: Bug 556695: New Hook: object_end_of_set r=mkanat, a=mkanat (module owner) --- Bugzilla/Hook.pm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'Bugzilla/Hook.pm') diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index af73814ce..556fda894 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -784,6 +784,34 @@ validated by the C specified for the object. =back + +=head2 object_end_of_set + +Called during L, after all the code of the function +has completed (so the value has been validated and the field has been set +to the new value). You can use this to perform actions after a value is +changed for specific fields on certain types of objects. + +The new value is not specifically passed to this hook because you can +get it as C<< $object->{$field} >>. + +Params: + +=over + +=item C + +The object that C was called on. You will probably want to +do something like C<< if ($object->isa('Some::Class')) >> in your code to +limit your changes to only certain subclasses of Bugzilla::Object. + +=item C + +The name of the field that was updated in the object. + +=back + + =head2 object_end_of_set_all This happens at the end of L. This is a -- cgit v1.2.3-24-g4f1b