diff options
author | Christian Legnitto <clegnitto@mozilla.com> | 2010-09-02 00:56:28 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-09-02 00:56:28 +0200 |
commit | cd51ea1922c051e9536c00cd97c5d18b39c1c023 (patch) | |
tree | 7a58191b4292764ecc28f5a0057d23dc0ccf204c /extensions | |
parent | e2048adeb7d627aa89991be9c0d2dbbb5ce85928 (diff) | |
download | bugzilla-cd51ea1922c051e9536c00cd97c5d18b39c1c023.tar.gz bugzilla-cd51ea1922c051e9536c00cd97c5d18b39c1c023.tar.xz |
Bug 587793: Add a new "object_end_of_create" hook so that extensions can
operate on any new objects
r=mkanat, a=mkanat
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/Example/Extension.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm index 4d85d01f8..5c6865362 100644 --- a/extensions/Example/Extension.pm +++ b/extensions/Example/Extension.pm @@ -408,6 +408,15 @@ sub object_columns { } } +sub object_end_of_create { + my ($self, $args) = @_; + + my $class = $args->{'class'}; + my $object = $args->{'object'}; + + warn "Created a new $class object!"; +} + sub object_end_of_create_validators { my ($self, $args) = @_; |