diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-07-27 14:37:58 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-07-27 14:37:58 +0200 |
commit | 1b4f82cd1d523f2947b7b9e62ac8685648fa05dd (patch) | |
tree | 39ed8ca0440aa548bb3e654715e6c38d7cd62d0f /phpBB/includes | |
parent | 978d1976b04264fcb1518e84d51450c96e548694 (diff) | |
parent | 2f8b9fb5497857cc74983485064525337f529f3a (diff) | |
download | forums-1b4f82cd1d523f2947b7b9e62ac8685648fa05dd.tar forums-1b4f82cd1d523f2947b7b9e62ac8685648fa05dd.tar.gz forums-1b4f82cd1d523f2947b7b9e62ac8685648fa05dd.tar.bz2 forums-1b4f82cd1d523f2947b7b9e62ac8685648fa05dd.tar.xz forums-1b4f82cd1d523f2947b7b9e62ac8685648fa05dd.zip |
Merge pull request #5630 from 3D-I/ticket/16103
[ticket/16103] Add core.pm_modify_message_subject
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index 543db4f889..cb45112b01 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -1007,6 +1007,16 @@ function compose_pm($id, $mode, $action, $user_folders = array()) if (($action == 'reply' || $action == 'quote' || $action == 'quotepost') && !$preview && !$refresh) { $message_subject = ((!preg_match('/^Re:/', $message_subject)) ? 'Re: ' : '') . censor_text($message_subject); + + /** + * This event allows you to modify the PM subject of the PM being quoted + * + * @event core.pm_modify_message_subject + * @var string message_subject String with the PM subject already censored. + * @since 3.2.8-RC1 + */ + $vars = array('message_subject'); + extract($phpbb_dispatcher->trigger_event('core.pm_modify_message_subject', compact($vars))); } if ($action == 'forward' && !$preview && !$refresh && !$submit) |