aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-09-12 12:50:15 -0700
committerNathan Guse <nathaniel.guse@gmail.com>2013-09-12 12:50:15 -0700
commite3dfe4f0465208fef525b20fcf1c630154514415 (patch)
treeb931fea153e3415d4f350ac20dc7ca77a20a8f2c /phpBB
parentf74a04c976c96864947bb91304abb3b92161f161 (diff)
parent3dfad1f01e61c80fe89721d7bd826fd77f79cf9a (diff)
downloadforums-e3dfe4f0465208fef525b20fcf1c630154514415.tar
forums-e3dfe4f0465208fef525b20fcf1c630154514415.tar.gz
forums-e3dfe4f0465208fef525b20fcf1c630154514415.tar.bz2
forums-e3dfe4f0465208fef525b20fcf1c630154514415.tar.xz
forums-e3dfe4f0465208fef525b20fcf1c630154514415.zip
Merge pull request #1699 from rechosen/ticket/9550
[ticket/9550] Add the core.viewtopic_post_rowset_data event to viewtopic.php
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/viewtopic.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index bc54a249a9..af2056fdeb 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1012,7 +1012,7 @@ while ($row = $db->sql_fetchrow($result))
}
}
- $rowset[$row['post_id']] = array(
+ $rowset_data = array(
'hide_post' => (($row['foe'] || $row['post_visibility'] == ITEM_DELETED) && ($view != 'show' || $post_id != $row['post_id'])) ? true : false,
'post_id' => $row['post_id'],
@@ -1047,6 +1047,19 @@ while ($row = $db->sql_fetchrow($result))
'foe' => $row['foe'],
);
+ /**
+ * Modify the post rowset containing data to be displayed with posts
+ *
+ * @event core.viewtopic_post_rowset_data
+ * @var array rowset_data Array with the rowset data for this post
+ * @var array row Array with original user and post data
+ * @since 3.1-A1
+ */
+ $vars = array('rowset_data', 'row');
+ extract($phpbb_dispatcher->trigger_event('core.viewtopic_post_rowset_data', compact($vars)));
+
+ $rowset[$row['post_id']] = $rowset_data;
+
// Define the global bbcode bitfield, will be used to load bbcodes
$bbcode_bitfield = $bbcode_bitfield | base64_decode($row['bbcode_bitfield']);