From cd51ea1922c051e9536c00cd97c5d18b39c1c023 Mon Sep 17 00:00:00 2001 From: Christian Legnitto Date: Wed, 1 Sep 2010 15:56:28 -0700 Subject: Bug 587793: Add a new "object_end_of_create" hook so that extensions can operate on any new objects r=mkanat, a=mkanat --- extensions/Example/Extension.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'extensions/Example') 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) = @_; -- cgit v1.2.1