aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/Example
diff options
context:
space:
mode:
authorChristian Legnitto <clegnitto@mozilla.com>2010-09-01 15:56:28 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-09-01 15:56:28 -0700
commitcd51ea1922c051e9536c00cd97c5d18b39c1c023 (patch)
tree7a58191b4292764ecc28f5a0057d23dc0ccf204c /extensions/Example
parente2048adeb7d627aa89991be9c0d2dbbb5ce85928 (diff)
downloadbugs-cd51ea1922c051e9536c00cd97c5d18b39c1c023.tar
bugs-cd51ea1922c051e9536c00cd97c5d18b39c1c023.tar.gz
bugs-cd51ea1922c051e9536c00cd97c5d18b39c1c023.tar.bz2
bugs-cd51ea1922c051e9536c00cd97c5d18b39c1c023.tar.xz
bugs-cd51ea1922c051e9536c00cd97c5d18b39c1c023.zip
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) = @_;