Adding SpecialSearchResultsPrepend/Append hooks
authorRyan Finnie <ryan@finnie.org>
Fri, 18 Jan 2013 00:46:40 +0000 (16:46 -0800)
committerRyan Finnie <ryan@finnie.org>
Fri, 18 Jan 2013 08:05:31 +0000 (00:05 -0800)
commit1c3b2a1bf033f25e6a2c8c70b05f2126a6c3a980
treefe7ebf5afb08f36451d80cb376b64bff43671197
parenta026d01b0fbdba24d62f70bbf3f1941fcefe193e
Adding SpecialSearchResultsPrepend/Append hooks

These hooks allow you to prepend, append or replace the search results
in Special:Search.

SpecialSearchResultsPrepend is executed immediately before the results
HTML begin to output.  It can be used to include an external search
provider like Google CSE, for example.  If the hook returns true, the
MediaWiki search results continue to output.  If returned false, they
are suppressed.

SpecialSearchResultsAppend is executed immediately after the last
results HTML (including search navigation) are output.  This hook is of
limited use since it will not be run in certain circumstances (there are
several points in the previous output logic where the function returns),
but is included for completeness.

Change-Id: Ib38433141979de999cdcab5eca26ba5416331aaa
docs/hooks.txt
includes/specials/SpecialSearch.php