diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-10-20 12:46:52 -0400 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-10-20 12:46:52 -0400 |
commit | 537c4150092c93086316ac5cdd20684e3907c42d (patch) | |
tree | 8a55d5119338787be2c8097108d56065e34715ae /phpBB/includes/functions_posting.php | |
parent | fba55791c112d4e556f63063a1c276473671eb8a (diff) | |
parent | eb4a95f659cdb2dfa5ae00643688d46c6fc30b89 (diff) | |
download | forums-537c4150092c93086316ac5cdd20684e3907c42d.tar forums-537c4150092c93086316ac5cdd20684e3907c42d.tar.gz forums-537c4150092c93086316ac5cdd20684e3907c42d.tar.bz2 forums-537c4150092c93086316ac5cdd20684e3907c42d.tar.xz forums-537c4150092c93086316ac5cdd20684e3907c42d.zip |
Merge pull request #5388 from toxyy/ticket/15819
[ticket/15819] Add core event to functions_posting to modify notifications
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 73a2e0be0c..1e8f1ad00d 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'); |