summaryrefslogtreecommitdiffstats
path: root/extensions/Example
diff options
context:
space:
mode:
authorChristian Legnitto <clegnitto@mozilla.com>2010-09-02 00:56:28 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-09-02 00:56:28 +0200
commitcd51ea1922c051e9536c00cd97c5d18b39c1c023 (patch)
tree7a58191b4292764ecc28f5a0057d23dc0ccf204c /extensions/Example
parente2048adeb7d627aa89991be9c0d2dbbb5ce85928 (diff)
downloadbugzilla-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/Example')
-rw-r--r--extensions/Example/Extension.pm9
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) = @_;