diff options
author | rxu <rxu@mail.ru> | 2017-08-16 21:57:11 +0700 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2017-08-16 22:38:34 +0700 |
commit | 68c3a0307de19fdefd7ae716247fffea3ee30c0c (patch) | |
tree | afd71fa73e5ca48d7655eac68cea6517bffc8712 /phpBB/posting.php | |
parent | 1e605efaf126f5474bb1be99e7fdaed834ebb2a0 (diff) | |
download | forums-68c3a0307de19fdefd7ae716247fffea3ee30c0c.tar forums-68c3a0307de19fdefd7ae716247fffea3ee30c0c.tar.gz forums-68c3a0307de19fdefd7ae716247fffea3ee30c0c.tar.bz2 forums-68c3a0307de19fdefd7ae716247fffea3ee30c0c.tar.xz forums-68c3a0307de19fdefd7ae716247fffea3ee30c0c.zip |
[ticket/15324] Add more core and template events
PHPBB3-15324
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 5dc59fea6d..02bf1c1d07 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -547,6 +547,27 @@ if ($post_data['poll_start']) $db->sql_freeresult($result); } +/** +* This event allows you to modify the post data before parsing +* +* @event core.posting_modify_post_data +* @var int forum_id ID of the forum +* @var string mode What action to take if the form has been submitted +* post|reply|quote|edit|delete|bump|smilies|popup +* @var array post_data Array with post data +* @var int post_id ID of the post +* @var int topic_id ID of the topic +* @since 3.2.2-RC1 +*/ +$vars = array( + 'forum_id', + 'mode', + 'post_data', + 'post_id', + 'topic_id', +); +extract($phpbb_dispatcher->trigger_event('core.posting_modify_post_data', compact($vars))); + if ($mode == 'edit') { $original_poll_data = array( |