aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
author3D-I <eataly3d@gmail.com>2019-07-20 20:34:46 +0200
committer3D-I <eataly3d@gmail.com>2019-07-20 20:35:25 +0200
commit2f8b9fb5497857cc74983485064525337f529f3a (patch)
treef5b12aa4082368e5c9bf95d40e643af1a37440d3 /phpBB/includes
parent9e9bdb69b5e00a4993b7ff9a6021044c9ec0c4dc (diff)
downloadforums-2f8b9fb5497857cc74983485064525337f529f3a.tar
forums-2f8b9fb5497857cc74983485064525337f529f3a.tar.gz
forums-2f8b9fb5497857cc74983485064525337f529f3a.tar.bz2
forums-2f8b9fb5497857cc74983485064525337f529f3a.tar.xz
forums-2f8b9fb5497857cc74983485064525337f529f3a.zip
[ticket/16103] Add core.pm_modify_message_subject
PHPBB3-16103
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php10
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)