mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/14624] Add event to ucp_profile in signature section
PHPBB3-14624
This commit is contained in:
parent
4cdec74e94
commit
8e1102b1da
1 changed files with 26 additions and 0 deletions
|
@ -492,6 +492,32 @@ class ucp_profile
|
||||||
$error[] = 'FORM_INVALID';
|
$error[] = 'FORM_INVALID';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Modify user signature on editing profile in UCP
|
||||||
|
*
|
||||||
|
* @event core.ucp_profile_modify_signature
|
||||||
|
* @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 string signature Users signature text
|
||||||
|
* @var object message_parser The message parser object
|
||||||
|
* @var array error Any error strings
|
||||||
|
* @var bool submit Whether or not the form has been sumitted
|
||||||
|
* @var bool preview Whether or not the signature is being previewed
|
||||||
|
* @since 3.1.9
|
||||||
|
*/
|
||||||
|
$vars = array(
|
||||||
|
'enable_bbocde',
|
||||||
|
'enable_smilies',
|
||||||
|
'enable_urls',
|
||||||
|
'signature',
|
||||||
|
'message_parser',
|
||||||
|
'error',
|
||||||
|
'submit',
|
||||||
|
'preview',
|
||||||
|
);
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.ucp_profile_modify_signature', compact($vars)));
|
||||||
|
|
||||||
if (!sizeof($error) && $submit)
|
if (!sizeof($error) && $submit)
|
||||||
{
|
{
|
||||||
$user->optionset('sig_bbcode', $enable_bbcode);
|
$user->optionset('sig_bbcode', $enable_bbcode);
|
||||||
|
|
Loading…
Add table
Reference in a new issue