diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-05-11 10:42:46 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-05-11 10:42:46 +0200 |
commit | 9aee2ed03995aca1d0348681bcb68d0042801d3a (patch) | |
tree | 0b9584297924a513b5f8fb9245f98613eec7ef9c /phpBB/search.php | |
parent | 135b76b6432f88e850b0149473af1b46408e4c91 (diff) | |
parent | 1b24d6897187dfa50c4847ccfe1241b2df03571d (diff) | |
download | forums-9aee2ed03995aca1d0348681bcb68d0042801d3a.tar forums-9aee2ed03995aca1d0348681bcb68d0042801d3a.tar.gz forums-9aee2ed03995aca1d0348681bcb68d0042801d3a.tar.bz2 forums-9aee2ed03995aca1d0348681bcb68d0042801d3a.tar.xz forums-9aee2ed03995aca1d0348681bcb68d0042801d3a.zip |
Merge pull request #2437 from rxu/ticket/12524
[ticket/12524] Add search.php core event to modify search results rowset
* rxu/ticket/12524:
[ticket/12524] Add search.php core event to modify search results rowset
Diffstat (limited to 'phpBB/search.php')
-rw-r--r-- | phpBB/search.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index 49df0d4da6..3a1e911195 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -912,6 +912,30 @@ if ($keywords || $author || $author_id || $search_id || $submit) $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) { $forum_id = $row['forum_id']; |