diff options
author | Oliver Schramm <oliver.schramm97@gmail.com> | 2014-11-09 15:15:26 +0100 |
---|---|---|
committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2014-11-09 15:34:54 +0100 |
commit | b6f0c789d5479aac9684498451c282f0a3e00f73 (patch) | |
tree | 02d88c1fa1b456a5187ca8f2df3b1a9b62eec150 /phpBB | |
parent | 054ab67771c62fdb0c7e033428bbbfc2a7f9d63b (diff) | |
download | forums-b6f0c789d5479aac9684498451c282f0a3e00f73.tar forums-b6f0c789d5479aac9684498451c282f0a3e00f73.tar.gz forums-b6f0c789d5479aac9684498451c282f0a3e00f73.tar.bz2 forums-b6f0c789d5479aac9684498451c282f0a3e00f73.tar.xz forums-b6f0c789d5479aac9684498451c282f0a3e00f73.zip |
[ticket/13310] Add event core.acp_email_modify_sql
PHPBB3-13310
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/acp/acp_email.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_email.php b/phpBB/includes/acp/acp_email.php index ebbdb288b6..4fefd6bec3 100644 --- a/phpBB/includes/acp/acp_email.php +++ b/phpBB/includes/acp/acp_email.php @@ -26,7 +26,7 @@ class acp_email function main($id, $mode) { global $config, $db, $user, $auth, $template, $cache; - global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix; + global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix, $phpbb_dispatcher; $user->add_lang('acp/email'); $this->tpl_name = 'acp_email'; @@ -128,6 +128,16 @@ class acp_email ); } } + /** + * Modify sql query to change the list of users the email is sent to + * + * @event core.acp_email_modify_sql + * @var array sql_ary Array which is used to build the sql query + * @since 3.1.2-RC1 + */ + $vars = array('sql_ary'); + extract($phpbb_dispatcher->trigger_event('core.acp_email_modify_sql', compact($vars))); + $sql = $db->sql_build_query('SELECT', $sql_ary); $result = $db->sql_query($sql); $row = $db->sql_fetchrow($result); |