1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

[ticket/16617] Events for posting/pm statuses

PHPBB3-16617
This commit is contained in:
pasha
2020-10-13 10:46:07 +03:00
committed by rxu
parent eefd3c0197
commit 5d66d4c91f
2 changed files with 42 additions and 0 deletions

View File

@@ -687,6 +687,26 @@ function compose_pm($id, $mode, $action, $user_folders = array())
$flash_status = ($config['auth_flash_pm'] && $auth->acl_get('u_pm_flash')) ? true : false;
$url_status = ($config['allow_post_links']) ? true : false;
/**
* Adds an opportunity to rewrite in private messages content statuses with extensions
*
* @event core.pm_content_statuses_settings
*
* @var bool bbcode_status
* @var bool smilies_status
* @var bool img_status
* @var bool url_status
* @var bool flash_status
*/
$vars = [
'bbcode_status',
'smilies_status',
'img_status',
'url_status',
'flash_status',
];
extract($phpbb_dispatcher->trigger_event('core.pm_content_statuses_settings', compact($vars)));
// Save Draft
if ($save && $auth->acl_get('u_savedrafts'))
{