diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-11-13 14:31:51 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-11-13 14:31:51 +0100 |
commit | 1efab9ec772f0b62572d28d1c2d57fdb998c5f8f (patch) | |
tree | 73d0a649a1db108ec821ae641ee1f45bf89346c2 | |
parent | e3b70c4c08c82cbf365e9f5e8e402b1f4888cc53 (diff) | |
download | forums-1efab9ec772f0b62572d28d1c2d57fdb998c5f8f.tar forums-1efab9ec772f0b62572d28d1c2d57fdb998c5f8f.tar.gz forums-1efab9ec772f0b62572d28d1c2d57fdb998c5f8f.tar.bz2 forums-1efab9ec772f0b62572d28d1c2d57fdb998c5f8f.tar.xz forums-1efab9ec772f0b62572d28d1c2d57fdb998c5f8f.zip |
[ticket/12015] Add an event after the post has been assigned to the template
PHPBB3-12015
-rw-r--r-- | phpBB/viewtopic.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index c453e3c2a6..2f9a869bc6 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1747,6 +1747,20 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i) } } + /** + * Event after the post data has been assigned to the template + * + * @event core.viewtopic_post_row_after + * @var array row Array with original post and user data + * @var array cp_row Custom profile field data of the poster + * @var array attachments List of attachments + * @var array user_poster_data Poster's data from user cache + * @var array post_row Template block array of the post + * @since 3.1-A2 + */ + $vars = array('row', 'cp_row', 'attachments', 'user_poster_data', 'post_row'); + extract($phpbb_dispatcher->trigger_event('core.viewtopic_post_row_after', compact($vars))); + $prev_post_id = $row['post_id']; unset($rowset[$post_list[$i]]); |