diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-03-06 13:50:44 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-03-06 13:50:44 +0100 |
commit | 2eb7c21ae00f95d47793cf4831da608221038dcf (patch) | |
tree | de244d0850428c1215039f64bd1805c804826930 | |
parent | f2a048e5ae5fd2cc121a6e57896239e5ed3359c7 (diff) | |
parent | d087d856182242a4ec06d703dfc631d70751440b (diff) | |
download | forums-2eb7c21ae00f95d47793cf4831da608221038dcf.tar forums-2eb7c21ae00f95d47793cf4831da608221038dcf.tar.gz forums-2eb7c21ae00f95d47793cf4831da608221038dcf.tar.bz2 forums-2eb7c21ae00f95d47793cf4831da608221038dcf.tar.xz forums-2eb7c21ae00f95d47793cf4831da608221038dcf.zip |
Merge branch '3.1.x'
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index fa28bd89a4..59952182df 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -90,6 +90,32 @@ function compose_pm($id, $mode, $action, $user_folders = array()) // we include the language file here $user->add_lang('viewtopic'); + /** + * Modify the default vars before composing a PM + * + * @event core.ucp_pm_compose_modify_data + * @var int msg_id post_id in the page request + * @var int to_user_id The id of whom the message is to + * @var int to_group_id The id of the group the message is to + * @var bool submit Whether the form has been submitted + * @var bool preview Whether the user is previewing the PM or not + * @var string action One of: post, reply, quote, forward, quotepost, edit, delete, smilies + * @var bool delete Whether the user is deleting the PM + * @var int reply_to_all Value of reply_to_all request variable. + * @since 3.1.4-RC1 + */ + $vars = array( + 'msg_id', + 'to_user_id', + 'to_group_id', + 'submit', + 'preview', + 'action', + 'delete', + 'reply_to_all', + ); + extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_modify_data', compact($vars))); + // Output PM_TO box if message composing if ($action != 'edit') { |