aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorAlec <arr70017@uga.edu>2018-10-01 00:42:55 -0400
committerAlec <arr70017@uga.edu>2018-10-01 00:42:55 -0400
commiteb4a95f659cdb2dfa5ae00643688d46c6fc30b89 (patch)
tree2018e7c0e38797a0f7338160dbbc5a174d2ebdbe /phpBB/includes/functions_posting.php
parent001f32da95d4f8697ccc9a6107afc8dc68cbe48e (diff)
downloadforums-eb4a95f659cdb2dfa5ae00643688d46c6fc30b89.tar
forums-eb4a95f659cdb2dfa5ae00643688d46c6fc30b89.tar.gz
forums-eb4a95f659cdb2dfa5ae00643688d46c6fc30b89.tar.bz2
forums-eb4a95f659cdb2dfa5ae00643688d46c6fc30b89.tar.xz
forums-eb4a95f659cdb2dfa5ae00643688d46c6fc30b89.zip
[ticket/15819] Add core event to functions_posting to modify notifications
Events added to allow modifying notification data before in the database. Useful to change variables in the notification message, such as usernames. Includes some other residual data to allow this event to be versatile. PHPBB3-15819
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 78c66ac6b8..e28a637286 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -2282,6 +2282,19 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll_ary, &$data
'post_subject' => $subject,
));
+ /**
+ * This event allows you to modify the notification data upon submission
+ *
+ * @event core.modify_submit_notification_data
+ * @var array notification_data The notification data to be inserted in to the database
+ * @var array data_ary The data array with a lot of the post submission data
+ * @var string mode The posting mode
+ * @var int poster_id The poster id
+ * @since 3.2.4-RC1
+ */
+ $vars = array('notification_data', 'data_ary', 'mode', 'poster_id');
+ extract($phpbb_dispatcher->trigger_event('core.modify_submit_notification_data', compact($vars)));
+
/* @var $phpbb_notifications \phpbb\notification\manager */
$phpbb_notifications = $phpbb_container->get('notification_manager');