mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12913] Add more parameters to core.submit_post_end event
As @event core.modify_submit_post_data can modify any of the function submit_post parameters, they may be needed to perform actions directly after a post or topic has been submitted in @event core.submit_post_end (includes/functions_posting.php). PHPBB3-12913
This commit is contained in:
parent
eb872c36d8
commit
a9c3c4056c
1 changed files with 23 additions and 4 deletions
|
@ -2401,12 +2401,31 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||||
* event is to modify the return URL ($url).
|
* event is to modify the return URL ($url).
|
||||||
*
|
*
|
||||||
* @event core.submit_post_end
|
* @event core.submit_post_end
|
||||||
* @var string url The "Return to topic" URL
|
* @var string mode Variable containing posting mode value
|
||||||
* @var array data Array of post data about the
|
* @var string subject Variable containing post subject value
|
||||||
* submitted post
|
* @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
|
* @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)));
|
extract($phpbb_dispatcher->trigger_event('core.submit_post_end', compact($vars)));
|
||||||
|
|
||||||
return $url;
|
return $url;
|
||||||
|
|
Loading…
Add table
Reference in a new issue