diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-05 20:39:58 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-01-05 20:39:58 +0100 |
commit | 7a34bf9bf597998ba39d5f15f5c931898981621b (patch) | |
tree | 64accb0fbc7a5b1cf58ddd7f30453d6c089b625d | |
parent | 3638b2ff645fe1490810e603a6d1afdad30cd3c0 (diff) | |
parent | 970ed40b09a17bbeaaa778ec6c1248a6d8da279c (diff) | |
download | forums-7a34bf9bf597998ba39d5f15f5c931898981621b.tar forums-7a34bf9bf597998ba39d5f15f5c931898981621b.tar.gz forums-7a34bf9bf597998ba39d5f15f5c931898981621b.tar.bz2 forums-7a34bf9bf597998ba39d5f15f5c931898981621b.tar.xz forums-7a34bf9bf597998ba39d5f15f5c931898981621b.zip |
Merge pull request #3244 from rxu/ticket/13449
[ticket/13449] Add viewforum event after the topic's been assigned to template
-rw-r--r-- | phpBB/viewforum.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index ce079cb262..97a979ed13 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -887,6 +887,28 @@ if (sizeof($topic_list)) $s_type_switch = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL) ? 1 : 0; + /** + * Event after the topic data has been assigned to the template + * + * @event core.viewforum_topic_row_after + * @var array row Array with the topic data + * @var array rowset Array with topics data (in topic_id => topic_data format) + * @var bool s_type_switch Flag indicating if the topic type is [global] announcement + * @var int topic_id The topic ID + * @var array topic_list Array with current viewforum page topic ids + * @var array topic_row Template array with topic data + * @since 3.1.3-RC1 + */ + $vars = array( + 'row', + 'rowset', + 's_type_switch', + 'topic_id', + 'topic_list', + 'topic_row', + ); + extract($phpbb_dispatcher->trigger_event('core.viewforum_topic_row_after', compact($vars))); + if ($unread_topic) { $mark_forum_read = false; |