aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_mcp.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-02-20 19:56:36 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-02-20 19:56:36 +0100
commitde061b5e11154f365d6497f506f366e822f6a628 (patch)
treea720d4c49e0ddea4c9d4ca6a823f8f146053a776 /phpBB/includes/functions_mcp.php
parent19f8e255153364c447eb750d4bc9522f7d8e1343 (diff)
parent31ae5748305704bdf58b20ed8d050fc6799e5a73 (diff)
downloadforums-de061b5e11154f365d6497f506f366e822f6a628.tar
forums-de061b5e11154f365d6497f506f366e822f6a628.tar.gz
forums-de061b5e11154f365d6497f506f366e822f6a628.tar.bz2
forums-de061b5e11154f365d6497f506f366e822f6a628.tar.xz
forums-de061b5e11154f365d6497f506f366e822f6a628.zip
Merge branch '3.1.x'
Diffstat (limited to 'phpBB/includes/functions_mcp.php')
-rw-r--r--phpBB/includes/functions_mcp.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/includes/functions_mcp.php b/phpBB/includes/functions_mcp.php
index f17a088d64..a674d0972c 100644
--- a/phpBB/includes/functions_mcp.php
+++ b/phpBB/includes/functions_mcp.php
@@ -424,6 +424,28 @@ function phpbb_mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by
AND t.topic_id = p.topic_id
AND t.topic_visibility <> p.post_visibility';
+ /**
+ * This event allows you to control the SQL query to retrieve the list of unapproved and deleted posts
+ *
+ * @event core.mcp_sorting_unapproved_deleted_posts_query_before
+ * @var string sql The current SQL search string
+ * @var int forum_id The forum id of the posts the user is trying to access
+ * @var int topic_id The topic id of the posts the user is trying to access
+ * @var int min_time Integer with the minimum post time that the user is searching for
+ * @var int visibility_const Integer with one of the possible ITEM_* constant values
+ * @var string where_sql Extra information included in the WHERE clause. It must end with "WHERE" or "AND" or "OR"
+ * @since 3.1.4-RC1
+ */
+ $vars = array(
+ 'sql',
+ 'forum_id',
+ 'topic_id',
+ 'min_time',
+ 'visibility_const',
+ 'where_sql',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.mcp_sorting_unapproved_deleted_posts_query_before', compact($vars)));
+
if ($min_time)
{
$sql .= ' AND post_time >= ' . $min_time;