diff options
author | Richard McGirr <rmcgirr83@gmail.com> | 2016-05-05 05:26:19 -0400 |
---|---|---|
committer | Richard McGirr <rmcgirr83@gmail.com> | 2016-05-05 05:26:19 -0400 |
commit | 8e1102b1da2652e88906a1cc6ecd47acec3fab7a (patch) | |
tree | 38b52dd30a0624d5028cf582d403cb4889b5b69d /phpBB/includes/ucp | |
parent | 4cdec74e94728605089587f2fd0667b3b3e4e558 (diff) | |
download | forums-8e1102b1da2652e88906a1cc6ecd47acec3fab7a.tar forums-8e1102b1da2652e88906a1cc6ecd47acec3fab7a.tar.gz forums-8e1102b1da2652e88906a1cc6ecd47acec3fab7a.tar.bz2 forums-8e1102b1da2652e88906a1cc6ecd47acec3fab7a.tar.xz forums-8e1102b1da2652e88906a1cc6ecd47acec3fab7a.zip |
[ticket/14624] Add event to ucp_profile in signature section
PHPBB3-14624
Diffstat (limited to 'phpBB/includes/ucp')
-rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index 2708a8dedf..3e21618b27 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -492,6 +492,32 @@ class ucp_profile $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) { $user->optionset('sig_bbcode', $enable_bbcode); |