mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-23 03:38:52 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12524] Add search.php core event to modify search results rowset
This commit is contained in:
commit
243cce0350
1 changed files with 24 additions and 0 deletions
|
@ -912,6 +912,30 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||||
$hilit = implode('|', $hilit_array);
|
$hilit = implode('|', $hilit_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Modify the rowset data
|
||||||
|
*
|
||||||
|
* @event core.search_modify_rowset
|
||||||
|
* @var array attachments Array with posts attachments data
|
||||||
|
* @var string hilit String to highlight
|
||||||
|
* @var array rowset Array with the search results data
|
||||||
|
* @var array topic_tracking_info Array with the topics tracking data
|
||||||
|
* @var string u_hilit Highlight string to be injected into URL
|
||||||
|
* @var string view Search results view mode
|
||||||
|
* @var array zebra Array with zebra data for the current user
|
||||||
|
* @since 3.1.0-b4
|
||||||
|
*/
|
||||||
|
$vars = array(
|
||||||
|
'attachments',
|
||||||
|
'hilit',
|
||||||
|
'rowset',
|
||||||
|
'topic_tracking_info',
|
||||||
|
'u_hilit',
|
||||||
|
'view',
|
||||||
|
'zebra',
|
||||||
|
);
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.search_modify_rowset', compact($vars)));
|
||||||
|
|
||||||
foreach ($rowset as $row)
|
foreach ($rowset as $row)
|
||||||
{
|
{
|
||||||
$forum_id = $row['forum_id'];
|
$forum_id = $row['forum_id'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue