aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2017-01-23 14:04:02 +0100
committerJakub Senko <jakubsenko@gmail.com>2017-01-23 14:04:02 +0100
commit927c211d41127adb5b20f352989c2d86d577949a (patch)
tree5f5997e06639c0de797077bf9bd16a6839dbd5db /phpBB/ucp.php
parent2d742beb9245fdc215b9d53b846b15d608bd99e4 (diff)
downloadforums-927c211d41127adb5b20f352989c2d86d577949a.tar
forums-927c211d41127adb5b20f352989c2d86d577949a.tar.gz
forums-927c211d41127adb5b20f352989c2d86d577949a.tar.bz2
forums-927c211d41127adb5b20f352989c2d86d577949a.tar.xz
forums-927c211d41127adb5b20f352989c2d86d577949a.zip
[ticket/13609] Add core.ucp_switch_permissions event
PHPBB3-13609
Diffstat (limited to 'phpBB/ucp.php')
-rw-r--r--phpBB/ucp.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 8c74ca1f3c..1c724e2126 100644
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -237,6 +237,19 @@ switch ($mode)
add_log('admin', 'LOG_ACL_TRANSFER_PERMISSIONS', $user_row['username']);
$message = sprintf($user->lang['PERMISSIONS_TRANSFERRED'], $user_row['username']) . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
+
+ /**
+ * Event to run code after permissions are switched
+ *
+ * @event core.ucp_switch_permissions
+ * @var int user_id User ID to switch permission to
+ * @var array user_row User data
+ * @var string message Success message
+ * @since 3.1.11-RC1
+ */
+ $vars = array('user_id', 'user_row', 'message');
+ extract($phpbb_dispatcher->trigger_event('core.ucp_switch_permissions', compact($vars)));
+
trigger_error($message);
break;