mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-30 11:11:23 +02:00
Merge pull request #1699 from rechosen/ticket/9550
[ticket/9550] Add the core.viewtopic_post_rowset_data event to viewtopic.php
This commit is contained in:
commit
e3dfe4f046
@ -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']);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user