diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-08-06 23:14:06 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-08-06 23:14:06 +0200 |
commit | 243ca3ae828730286d0c98ac0671592c22a1edce (patch) | |
tree | 1e118060f1076fd1eeb46446eff770b9a49b984e /phpBB/includes/functions_posting.php | |
parent | eb872c36d8f82e7881e8500efb8501f4f61b700e (diff) | |
parent | a9c3c4056ca553ec58de4f39dd15a580381fde66 (diff) | |
download | forums-243ca3ae828730286d0c98ac0671592c22a1edce.tar forums-243ca3ae828730286d0c98ac0671592c22a1edce.tar.gz forums-243ca3ae828730286d0c98ac0671592c22a1edce.tar.bz2 forums-243ca3ae828730286d0c98ac0671592c22a1edce.tar.xz forums-243ca3ae828730286d0c98ac0671592c22a1edce.zip |
Merge pull request #2806 from rxu/ticket/12913
[ticket/12913] Add more parameters to core.submit_post_end event
* rxu/ticket/12913:
[ticket/12913] Add more parameters to core.submit_post_end event
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 26c4a06977..b3f164a84d 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -2401,12 +2401,31 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u * event is to modify the return URL ($url). * * @event core.submit_post_end - * @var string url The "Return to topic" URL - * @var array data Array of post data about the - * submitted post + * @var string mode Variable containing posting mode value + * @var string subject Variable containing post subject value + * @var string username Variable containing post author name + * @var int topic_type Variable containing topic type value + * @var array poll Array with the poll data for the post + * @var array data Array with the data for the post + * @var bool update_message Flag indicating if the post will be updated + * @var bool update_search_index Flag indicating if the search index will be updated + * @var string url The "Return to topic" URL + * * @since 3.1.0-a3 + * @change 3.1.0-RC3 Added vars mode, subject, username, topic_type, + * poll, update_message, update_search_index */ - $vars = array('url', 'data'); + $vars = array( + 'mode', + 'subject', + 'username', + 'topic_type', + 'poll', + 'data', + 'update_message', + 'update_search_index', + 'url', + ); extract($phpbb_dispatcher->trigger_event('core.submit_post_end', compact($vars))); return $url; |