aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2016-09-01 16:23:50 +0200
committerTristan Darricau <github@nicofuma.fr>2016-09-01 16:23:50 +0200
commit65921a78915e0c9bf494e8c780681522644abf7d (patch)
tree62a9253ea7537557226247ea8fad9819919cf796
parentf008708d5cebfea7ef6efef4c876e99f819bff71 (diff)
parent0cc41be3c0cdf3deccd9925b6e66c398b3d6c26e (diff)
downloadforums-65921a78915e0c9bf494e8c780681522644abf7d.tar
forums-65921a78915e0c9bf494e8c780681522644abf7d.tar.gz
forums-65921a78915e0c9bf494e8c780681522644abf7d.tar.bz2
forums-65921a78915e0c9bf494e8c780681522644abf7d.tar.xz
forums-65921a78915e0c9bf494e8c780681522644abf7d.zip
Merge pull request #4396 from ErnadoO/ticket/14727
[ticket/14727] Event core.search_modify_submit_parameters * ErnadoO/ticket/14727: [ticket/14727] Event core.search_modify_submit_parameters
-rw-r--r--phpBB/search.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index a0380590c1..cbee369086 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -126,6 +126,26 @@ gen_sort_selects($limit_days, $sort_by_text, $sort_days, $sort_key, $sort_dir, $
$phpbb_content_visibility = $phpbb_container->get('content.visibility');
$pagination = $phpbb_container->get('pagination');
+/**
+* This event allows you to alter the above parameters, such as keywords and submit
+*
+* @event core.search_modify_submit_parameters
+* @var string keywords The search keywords
+* @var string author Specifies the author match, when ANONYMOUS is also a search-match
+* @var int author_id ID of the author to search by
+* @var string search_id Predefined search type name
+* @var bool submit Whether or not the form has been submitted
+* @since 3.1.10-RC1
+*/
+$vars = array(
+ 'keywords',
+ 'author',
+ 'author_id',
+ 'search_id',
+ 'submit',
+);
+extract($phpbb_dispatcher->trigger_event('core.search_modify_submit_parameters', compact($vars)));
+
if ($keywords || $author || $author_id || $search_id || $submit)
{
// clear arrays