mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.2.x'
* 3.2.x: [ticket/14727] Event core.search_modify_submit_parameters Conflicts: phpBB/search.php
This commit is contained in:
commit
c61465dbe7
1 changed files with 20 additions and 0 deletions
|
@ -134,6 +134,26 @@ $template->assign_block_vars('navlinks', array(
|
|||
'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}search.$phpEx"),
|
||||
));
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
|
Loading…
Add table
Reference in a new issue