aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-09-19 00:22:53 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-09-19 00:22:53 +0200
commite9285d43afcae60f4cec989965423e8e65d4f491 (patch)
treec14f2ad1b2945de692ac26622c7e1f88b8cdd185
parentae14b0f272e163ba866a2fd446f8d45b388df74f (diff)
parentbf6bc330afc075f2d6f989da5ff3440ccccd303d (diff)
downloadforums-e9285d43afcae60f4cec989965423e8e65d4f491.tar
forums-e9285d43afcae60f4cec989965423e8e65d4f491.tar.gz
forums-e9285d43afcae60f4cec989965423e8e65d4f491.tar.bz2
forums-e9285d43afcae60f4cec989965423e8e65d4f491.tar.xz
forums-e9285d43afcae60f4cec989965423e8e65d4f491.zip
Merge pull request #2952 from rxu/ticket/13066
[ticket/13066] Add search results core event to modify search title * rxu/ticket/13066: [ticket/13066] Add search results core event to modify search title
-rw-r--r--phpBB/search.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 67f6f4dbb5..93f12f4310 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -1149,6 +1149,20 @@ if ($keywords || $author || $author_id || $search_id || $submit)
}
unset($rowset);
+ /**
+ * Modify the title and/or load data for the search results page
+ *
+ * @event core.search_results_modify_search_title
+ * @var int author_id ID of the author to search by
+ * @var string l_search_title The title of the search page
+ * @var string search_id Predefined search type name
+ * @var string show_results Search results output mode - topics or posts
+ * @var int start The starting id of the results
+ * @since 3.1.0-RC4
+ */
+ $vars = array('author_id', 'l_search_title', 'search_id', 'show_results', 'start');
+ extract($phpbb_dispatcher->trigger_event('core.search_results_modify_search_title', compact($vars)));
+
page_header(($l_search_title) ? $l_search_title : $user->lang['SEARCH']);
$template->set_filenames(array(