diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2016-06-19 17:53:23 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2016-06-19 17:53:23 +0200 |
| commit | 804236bce4d4dd8bbf134f02942750c34e2d7ae1 (patch) | |
| tree | e8e7ff9fbfaa1f3fc8889ec374904aba8e848065 /phpBB | |
| parent | cf8c13b04c9ee0496183c33e9a992f90ecf4c590 (diff) | |
| parent | e6e4c0e62d9767f0e5d886a8c8029cf88380132f (diff) | |
| download | forums-804236bce4d4dd8bbf134f02942750c34e2d7ae1.tar forums-804236bce4d4dd8bbf134f02942750c34e2d7ae1.tar.gz forums-804236bce4d4dd8bbf134f02942750c34e2d7ae1.tar.bz2 forums-804236bce4d4dd8bbf134f02942750c34e2d7ae1.tar.xz forums-804236bce4d4dd8bbf134f02942750c34e2d7ae1.zip | |
Merge pull request #4331 from Senky/ticket/13978
[ticket/13978] Add core.ucp_profile_modify_signature_sql_ary
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index fcb29832d4..0be1930f1a 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -531,6 +531,16 @@ class ucp_profile 'user_sig_bbcode_bitfield' => $message_parser->bbcode_bitfield ); + /** + * Modify user registration data before submitting it to the database + * + * @event core.ucp_profile_modify_signature_sql_ary + * @var array sql_ary Array with user signature data to submit to the database + * @since 3.1.10-RC1 + */ + $vars = array('sql_ary'); + extract($phpbb_dispatcher->trigger_event('core.ucp_profile_modify_signature_sql_ary', compact($vars))); + $sql = 'UPDATE ' . USERS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . ' WHERE user_id = ' . $user->data['user_id']; |
