summaryrefslogtreecommitdiffstats
path: root/extensions/example/lib
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2008-05-06 06:01:22 +0200
committerbbaetz%acm.org <>2008-05-06 06:01:22 +0200
commit183719adf844b5497699c60625c6268e1640d9de (patch)
treeaba035a87ca988b7712c9bfff386fbe972fe53be /extensions/example/lib
parent82361875f25e4fba6326ef73bdcecc80b846d79e (diff)
downloadbugzilla-183719adf844b5497699c60625c6268e1640d9de.tar.gz
bugzilla-183719adf844b5497699c60625c6268e1640d9de.tar.xz
Bug 430909 - add hook for parameters
r=mkanat, r/a=lpsolit
Diffstat (limited to 'extensions/example/lib')
-rw-r--r--extensions/example/lib/ConfigExample.pm41
1 files changed, 41 insertions, 0 deletions
diff --git a/extensions/example/lib/ConfigExample.pm b/extensions/example/lib/ConfigExample.pm
new file mode 100644
index 000000000..5ee612de2
--- /dev/null
+++ b/extensions/example/lib/ConfigExample.pm
@@ -0,0 +1,41 @@
+# -*- Mode: perl; indent-tabs-mode: nil -*-
+#
+# The contents of this file are subject to the Mozilla Public
+# License Version 1.1 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS
+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# rights and limitations under the License.
+#
+# The Original Code is the Bugzilla Example Plugin.
+#
+# The Initial Developer of the Original Code is Canonical Ltd.
+# Portions created by Canonical Ltd. are Copyright (C) 2008
+# Canonical Ltd. All Rights Reserved.
+#
+# Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
+# Bradley Baetz <bbaetz@acm.org>
+
+package extensions::example::lib::ConfigExample;
+use strict;
+use warnings;
+
+use Bugzilla::Config::Common;
+
+sub get_param_list {
+ my ($class) = @_;
+
+ my @param_list = (
+ {
+ name => 'example_string',
+ type => 't',
+ default => 'EXAMPLE',
+ },
+ );
+ return @param_list;
+}
+
+1;