mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge pull request #2762 from brunoais/ticket/12876
[ticket/12876] core.mcp_mcp_front.mcp_front_view_queue_postid_list_after * brunoais/ticket/12876: [ticket/12876] core.mcp_mcp_front.mcp_front_view_queue_postid_list_after
This commit is contained in:
commit
bef9d64179
1 changed files with 14 additions and 0 deletions
|
@ -26,6 +26,7 @@ function mcp_front_view($id, $mode, $action)
|
|||
{
|
||||
global $phpEx, $phpbb_root_path, $config;
|
||||
global $template, $db, $user, $auth, $module;
|
||||
global $phpbb_dispatcher;
|
||||
|
||||
// Latest 5 unapproved
|
||||
if ($module->loaded('queue'))
|
||||
|
@ -80,6 +81,19 @@ function mcp_front_view($id, $mode, $action)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Alter list of posts and total as required
|
||||
*
|
||||
* @event core.mcp_front_view_queue_postid_list_after
|
||||
* @var int total Number of unapproved posts
|
||||
* @var array post_list List of unapproved posts
|
||||
* @var array forum_list List of forums that contain the posts
|
||||
* @var array forum_names Associative array with forum_id as key and it's corresponding forum_name as value
|
||||
* @since 3.1.0-RC3
|
||||
*/
|
||||
$vars = array('total', 'post_list', 'forum_list', 'forum_names');
|
||||
extract($phpbb_dispatcher->trigger_event('core.mcp_front_view_queue_postid_list_after', compact($vars)));
|
||||
|
||||
if ($total)
|
||||
{
|
||||
$sql = 'SELECT p.post_id, p.post_subject, p.post_time, p.post_attachment, p.poster_id, p.post_username, u.username, u.username_clean, u.user_colour, t.topic_id, t.topic_title, t.topic_first_post_id, p.forum_id
|
||||
|
|
Loading…
Add table
Reference in a new issue