diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-02 07:42:42 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-02 07:42:42 +0200 |
commit | 2a444f9d50535445a84367a9833bd87a07752d0a (patch) | |
tree | 15d89acf5beac987d45b39f4f1ae7010062cc6c6 /extensions | |
parent | 11e17befd5f484859eea97b5bf831d220ce2b2a8 (diff) | |
download | bugzilla-2a444f9d50535445a84367a9833bd87a07752d0a.tar.gz bugzilla-2a444f9d50535445a84367a9833bd87a07752d0a.tar.xz |
Bug 556695: New Hook: object_end_of_set
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/Example/Extension.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm index 398ddbd56..52ac66231 100644 --- a/extensions/Example/Extension.pm +++ b/extensions/Example/Extension.pm @@ -386,6 +386,17 @@ sub object_end_of_create_validators { } +sub object_end_of_set { + my ($self, $args) = @_; + + my ($object, $field) = @$args{qw(object field)}; + + # Note that this is a made-up class, for this example. + if ($object->isa('Bugzilla::ExampleObject')) { + warn "The field $field has changed to " . $object->{$field}; + } +} + sub object_end_of_set_all { my ($self, $args) = @_; |