diff options
| author | Richard McGirr <rmcgirr83@gmail.com> | 2016-05-06 06:31:35 -0400 | 
|---|---|---|
| committer | Richard McGirr <rmcgirr83@gmail.com> | 2016-05-06 06:31:35 -0400 | 
| commit | c7bbcd7b84ad142a1fb804558c549a1e295a21ee (patch) | |
| tree | 0ca8ee516fe011850247bca799d7b1f2a60399f3 /phpBB | |
| parent | 4cdec74e94728605089587f2fd0667b3b3e4e558 (diff) | |
| download | forums-c7bbcd7b84ad142a1fb804558c549a1e295a21ee.tar forums-c7bbcd7b84ad142a1fb804558c549a1e295a21ee.tar.gz forums-c7bbcd7b84ad142a1fb804558c549a1e295a21ee.tar.bz2 forums-c7bbcd7b84ad142a1fb804558c549a1e295a21ee.tar.xz forums-c7bbcd7b84ad142a1fb804558c549a1e295a21ee.zip  | |
[ticket/14630] Add event to modify pm message
https://tracker.phpbb.com/browse/PHPBB3-14630
PHPBB3-14630
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 28 | 
1 files changed, 28 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index aae80b0c06..62ea82bf1f 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -751,6 +751,34 @@ function compose_pm($id, $mode, $action, $user_folders = array())  		$enable_urls 		= (isset($_POST['disable_magic_url'])) ? 0 : 1;  		$enable_sig			= (!$config['allow_sig'] ||!$config['allow_sig_pm']) ? false : ((isset($_POST['attach_sig'])) ? true : false); +		/** +		* Modify Private message +		* +		* @event core.ucp_pm_compose_modify_private_message +		* @var	bool	enable_bbcode		Whether or not bbcode is enabled +		* @var	bool	enable_smilies		Whether or not smilies are enabled +		* @var	bool	enable_urls			Whether or not urls are enabled +		* @var	bool	enable_sig			Whether or not signature is enabled +		* @var	string	subject				PM subject text +		* @var	object	message_parser		The message parser object +		* @var	bool	submit				Whether or not the form has been sumitted +		* @var	bool	preview				Whether or not the signature is being previewed +		* @var	string	error				Any error strings +		* @since 3.1.10-RC1 +		*/ +		$vars = array( +			'enable_bbcode', +			'enable_smilies', +			'enable_urls', +			'enable_sig', +			'subject', +			'message_parser', +			'submit', +			'preview', +			'error', +		); +		extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_modify_private_message', compact($vars))); +  		if ($submit)  		{  			$status_switch	= (($enable_bbcode+1) << 8) + (($enable_smilies+1) << 4) + (($enable_urls+1) << 2) + (($enable_sig+1) << 1);  | 
