diff options
author | brunoais <brunoaiss@gmail.com> | 2014-07-21 09:27:06 +0100 |
---|---|---|
committer | brunoais <brunoaiss@gmail.com> | 2014-08-07 18:37:07 +0100 |
commit | 1f5f2327e81855d227718670ce4fdcaf85317d06 (patch) | |
tree | aeee5e5935eba8e05bc1f7e9f5745db84306f221 /phpBB/includes/mcp/mcp_front.php | |
parent | a0e00889d1a03804625522405824ac8cbce15c22 (diff) | |
download | forums-1f5f2327e81855d227718670ce4fdcaf85317d06.tar forums-1f5f2327e81855d227718670ce4fdcaf85317d06.tar.gz forums-1f5f2327e81855d227718670ce4fdcaf85317d06.tar.bz2 forums-1f5f2327e81855d227718670ce4fdcaf85317d06.tar.xz forums-1f5f2327e81855d227718670ce4fdcaf85317d06.zip |
[ticket/12876] core.mcp_mcp_front.mcp_front_view_queue_postid_list_after
Adding the core.mcp_mcp_front.mcp_front_view_queue_topicid_list_after
event to mcp backend.
PHPBB3-12876
Diffstat (limited to 'phpBB/includes/mcp/mcp_front.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_front.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php index 04206a6fcd..1dcd08cfcf 100644 --- a/phpBB/includes/mcp/mcp_front.php +++ b/phpBB/includes/mcp/mcp_front.php @@ -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 |