From 36083872e0e6fc7a9541e350067d5929566d76c3 Mon Sep 17 00:00:00 2001 From: Alec Date: Fri, 18 Jan 2019 22:14:51 -0500 Subject: [PATCH] [ticket/15944] Add core.posting_modify_quote_attributes Allow modification of the quote attributes of the current post being quoted Any information in there can be changed without affecting the rest of the page New attributes can also be added if an extension needed to as well PHPBB3-15944 --- phpBB/posting.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/phpBB/posting.php b/phpBB/posting.php index 59be983987..75085a5635 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1649,6 +1649,20 @@ if ($generate_quote) 'user_id' => $post_data['poster_id'], ); + /** + * This event allows you to modify the quote attributes of the post being quoted + * + * @event core.posting_modify_quote_attributes + * @var array quote_attributes Array with quote attributes + * @var array post_data Array with post data + * @since 3.2.6-RC1 + */ + $vars = array( + 'quote_attributes', + 'post_data', + ); + extract($phpbb_dispatcher->trigger_event('core.posting_modify_quote_attributes', compact($vars))); + /** @var \phpbb\language\language $language */ $language = $phpbb_container->get('language'); phpbb_format_quote($language, $message_parser, $bbcode_utils, $bbcode_status, $quote_attributes);