diff options
author | Tristan Darricau <github@nicofuma.fr> | 2016-09-01 16:23:59 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2016-09-01 16:24:07 +0200 |
commit | 08f558d8f766fd97f04d002003b4f87b405016be (patch) | |
tree | b0ba58c91904d4cdf4f8c52b9183bb5ca6cb0d0c /phpBB/search.php | |
parent | a3dc829dab61ab2f548e9bc818c689a6f9f31287 (diff) | |
parent | 65921a78915e0c9bf494e8c780681522644abf7d (diff) | |
download | forums-08f558d8f766fd97f04d002003b4f87b405016be.tar forums-08f558d8f766fd97f04d002003b4f87b405016be.tar.gz forums-08f558d8f766fd97f04d002003b4f87b405016be.tar.bz2 forums-08f558d8f766fd97f04d002003b4f87b405016be.tar.xz forums-08f558d8f766fd97f04d002003b4f87b405016be.zip |
Merge branch '3.1.x' into 3.2.x
* 3.1.x:
[ticket/14727] Event core.search_modify_submit_parameters
Diffstat (limited to 'phpBB/search.php')
-rw-r--r-- | phpBB/search.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index 3d8c05fed9..2d8a0ad7c7 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -129,6 +129,26 @@ $phpbb_content_visibility = $phpbb_container->get('content.visibility'); /* @var $pagination \phpbb\pagination */ $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 |