diff options
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) = @_; |