diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2016-12-03 16:01:54 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2016-12-03 16:01:54 +0100 |
| commit | 5505f98aad86767f45ea8c2ad3f31128d0893812 (patch) | |
| tree | 9bfcdc2bf3fc5e9aaf9b745ea1ab552c9f112e68 /phpBB | |
| parent | fbe5193359e46aa6e28308a0d018d09785e4e9e6 (diff) | |
| parent | a1a3daaca87a27899514f28a70a307702222de89 (diff) | |
| download | forums-5505f98aad86767f45ea8c2ad3f31128d0893812.tar forums-5505f98aad86767f45ea8c2ad3f31128d0893812.tar.gz forums-5505f98aad86767f45ea8c2ad3f31128d0893812.tar.bz2 forums-5505f98aad86767f45ea8c2ad3f31128d0893812.tar.xz forums-5505f98aad86767f45ea8c2ad3f31128d0893812.zip | |
Merge pull request #4524 from senky/ticket/13479
[ticket/13479] Add core.viewtopic_highlight_modify
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/viewtopic.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 780e43e09b..5c98a9c931 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -495,6 +495,28 @@ if ($config['allow_topic_notify']) } } +/** +* Event to modify highlight. +* +* @event core.viewtopic_highlight_modify +* @var string highlight String to be highlighted +* @var string highlight_match Highlight string to be used in preg_replace +* @var array topic_data Topic data +* @var int start Pagination start +* @var int total_posts Number of posts +* @var string viewtopic_url Current viewtopic URL +* @since 3.1.11-RC1 +*/ +$vars = array( + 'highlight', + 'highlight_match', + 'topic_data', + 'start', + 'total_posts', + 'viewtopic_url', +); +extract($phpbb_dispatcher->trigger_event('core.viewtopic_highlight_modify', compact($vars))); + // Bookmarks if ($config['allow_bookmarks'] && $user->data['is_registered'] && request_var('bookmark', 0)) { |
