aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_users.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-10-28 13:19:44 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-10-28 13:19:44 +0100
commit99abb311c7a864b622c6325a4299397fb842d610 (patch)
tree399ae01d9b32c2c55036888847c4872171f66960 /phpBB/includes/acp/acp_users.php
parent77b7d9ba69d6dae5e67f2f5bdebc9a7b7226be3b (diff)
parent9d85422edb5cb0209c53fd3a3c1d83cace13a85a (diff)
downloadforums-99abb311c7a864b622c6325a4299397fb842d610.tar
forums-99abb311c7a864b622c6325a4299397fb842d610.tar.gz
forums-99abb311c7a864b622c6325a4299397fb842d610.tar.bz2
forums-99abb311c7a864b622c6325a4299397fb842d610.tar.xz
forums-99abb311c7a864b622c6325a4299397fb842d610.zip
Merge pull request #5406 from senky/ticket/15831
[ticket/15831] Add core.acp_users_modify_signature_sql_ary event
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
-rw-r--r--phpBB/includes/acp/acp_users.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index 205ce20bc3..f775d7954b 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -2085,6 +2085,17 @@ class acp_users
'user_sig_bbcode_bitfield' => $bbcode_bitfield,
);
+ /**
+ * Modify user signature before it is stored in the DB
+ *
+ * @event core.acp_users_modify_signature_sql_ary
+ * @var array user_row Array with user data
+ * @var array sql_ary Array with user signature data to be updated in the DB
+ * @since 3.2.4-RC1
+ */
+ $vars = array('user_row', 'sql_ary');
+ extract($phpbb_dispatcher->trigger_event('core.acp_users_modify_signature_sql_ary', compact($vars)));
+
$sql = 'UPDATE ' . USERS_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
WHERE user_id = ' . $user_id;