aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-04-07 11:45:55 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-04-07 11:45:55 +0200
commitcc7c1c8447496f1d34721442505481d7883668c2 (patch)
tree3c641dd110e67a3e55125748fc7e9633136b48cd /phpBB
parentf51ef14e44c78116e2196cf2362cb73f9566ece8 (diff)
parent36083872e0e6fc7a9541e350067d5929566d76c3 (diff)
downloadforums-cc7c1c8447496f1d34721442505481d7883668c2.tar
forums-cc7c1c8447496f1d34721442505481d7883668c2.tar.gz
forums-cc7c1c8447496f1d34721442505481d7883668c2.tar.bz2
forums-cc7c1c8447496f1d34721442505481d7883668c2.tar.xz
forums-cc7c1c8447496f1d34721442505481d7883668c2.zip
Merge pull request #5516 from toxyy/ticket/15944
[ticket/15944] Add core.posting_modify_quote_attributes
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/posting.php14
1 files changed, 14 insertions, 0 deletions
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);