summaryrefslogtreecommitdiffstats
path: root/extensions/Example
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Example')
-rw-r--r--extensions/Example/Extension.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm
index af36b107a..0ab5220a7 100644
--- a/extensions/Example/Extension.pm
+++ b/extensions/Example/Extension.pm
@@ -304,6 +304,17 @@ sub buglist_column_joins {
};
}
+sub buglist_format {
+ my ($self, $args) = @_;
+ my $vars = $args->{'vars'};
+ my $format = $args->{'format'};
+ my $params = $args->{'params'};
+
+ if ($format->{'template'} eq "list/list-example.html.tmpl") {
+ $vars->{'example'} = $params->param('example');
+ }
+}
+
sub search_operator_field_override {
my ($self, $args) = @_;
@@ -856,6 +867,18 @@ sub product_end_of_create {
}
}
+sub query_format {
+ my ($self, $args) = @_;
+ my $vars = $args->{'vars'};
+ my $default = $vars->{'default'};
+ my $format = $args->{'format'};
+
+ # change some default values
+ if ($format->{'template'} eq "search/search-example.html.tmpl") {
+ $default->{'example'}[0] = $default->{'example'}[0] || "example";
+ }
+}
+
sub quicksearch_map {
my ($self, $args) = @_;
my $map = $args->{'map'};