aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-08-06 16:42:13 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-06 16:45:00 +0200
commitdcb4d3b92612faefc9c7b08c843be24f79d31c21 (patch)
treeef5d0975af4fd9d1dd1d51d85847a2916f94e2e9 /phpBB/viewtopic.php
parenteb80d280b15ddb442f290c9722d394f63a9036e3 (diff)
downloadforums-dcb4d3b92612faefc9c7b08c843be24f79d31c21.tar
forums-dcb4d3b92612faefc9c7b08c843be24f79d31c21.tar.gz
forums-dcb4d3b92612faefc9c7b08c843be24f79d31c21.tar.bz2
forums-dcb4d3b92612faefc9c7b08c843be24f79d31c21.tar.xz
forums-dcb4d3b92612faefc9c7b08c843be24f79d31c21.zip
[feature/php-events] Fix doc and naming of core.viewtopic_modify_post_row
PHPBB3-9550
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index cad3789fd4..0881fb3e48 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1609,8 +1609,18 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
$user_poster_data = $user_cache[$poster_id];
+ /**
+ * Modify the posts template block
+ *
+ * @event core.viewtopic_modify_post_row
+ * @var array row Array with original post and user data
+ * @var array cp_row Custom profile field data of the poster
+ * @var array user_poster_data Poster's data from user cache
+ * @var array post_row Template block array of the post
+ * @since 3.1-A1
+ */
$vars = array('row', 'cp_row', 'user_poster_data', 'post_row');
- extract($phpbb_dispatcher->trigger_event('core.viewtopic_postrow', compact($vars)));
+ extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_post_row', compact($vars)));
if (isset($cp_row['row']) && sizeof($cp_row['row']))
{