Commit 331fee41 authored by Albert Ting's avatar Albert Ting Committed by Frédéric Buclin

Bug 836436: Add a "search_tabs" hook to allow additional search tabs

r/a=LpSolit
parent 91a5a96b
[%# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[%
tabs.push ({ name => 'newsearch', label => "New Search",
link => "query.cgi?format=newsearch" })
%]
......@@ -10,11 +10,15 @@
# This template has no interface.
#%]
[% tabs = [ { name => 'specific', label => "Simple Search",
link => "query.cgi?format=specific" },
{ name => 'advanced', label => "Advanced Search",
link => "query.cgi?format=advanced" } ] %]
[% Hook.process('search_tabs') %]
[% WRAPPER global/tabs.html.tmpl
tabs = [ { name => 'specific', label => "Simple Search",
link => "query.cgi?format=specific" },
{ name => 'advanced', label => "Advanced Search",
link => "query.cgi?format=advanced" } ]
tabs = tabs
current_tab_name = query_format || format || "advanced"
%]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment