summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-11 01:46:59 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-11 01:46:59 +0100
commitaca53c540c69496390b172a55a46b817d2828d0f (patch)
tree6d300d90bfb2ac744b192a074428e8ef0b81e1e6 /extensions
parentd4f7ab1e416445c9a56a9da93eddc536099d22c2 (diff)
downloadbugzilla-aca53c540c69496390b172a55a46b817d2828d0f.tar.gz
bugzilla-aca53c540c69496390b172a55a46b817d2828d0f.tar.xz
Bug 545541: New Hook: object_columns
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'extensions')
-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 5f4cdf995..0e4e0f722 100644
--- a/extensions/Example/Extension.pm
+++ b/extensions/Example/Extension.pm
@@ -333,6 +333,15 @@ sub object_before_set {
}
}
+sub object_columns {
+ my ($self, $args) = @_;
+ my ($class, $columns) = @$args{qw(class columns)};
+
+ if ($class->isa('Bugzilla::ExampleObject')) {
+ push(@$columns, 'example');
+ }
+}
+
sub object_end_of_create_validators {
my ($self, $args) = @_;