aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2017-04-19 23:08:15 +0200
committerTristan Darricau <github@nicofuma.fr>2017-04-19 23:08:15 +0200
commitff22d54eae45a79f5bc59d2c04f3e02eed8e4981 (patch)
treed68b4974020b88bc09434b522b99f4555881ac4b /phpBB/ucp.php
parent5bd497ae54c406d8bcb2338cdb7d796314244783 (diff)
parent15f6d66a61cdbaf195327c9f2c3077ffb833e94f (diff)
downloadforums-ff22d54eae45a79f5bc59d2c04f3e02eed8e4981.tar
forums-ff22d54eae45a79f5bc59d2c04f3e02eed8e4981.tar.gz
forums-ff22d54eae45a79f5bc59d2c04f3e02eed8e4981.tar.bz2
forums-ff22d54eae45a79f5bc59d2c04f3e02eed8e4981.tar.xz
forums-ff22d54eae45a79f5bc59d2c04f3e02eed8e4981.zip
Merge pull request #4670 from senky/ticket/13608
[ticket/13608] Add core.ucp_restore_permissions event * github.com:phpbb/phpbb: [ticket/13608] Add core.ucp_restore_permissions event
Diffstat (limited to 'phpBB/ucp.php')
-rw-r--r--phpBB/ucp.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 1c724e2126..5cd602bab5 100644
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -273,6 +273,18 @@ switch ($mode)
add_log('admin', 'LOG_ACL_RESTORE_PERMISSIONS', $username);
$message = $user->lang['PERMISSIONS_RESTORED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
+
+ /**
+ * Event to run code after permissions are restored
+ *
+ * @event core.ucp_restore_permissions
+ * @var string username User name
+ * @var string message Success message
+ * @since 3.1.11-RC1
+ */
+ $vars = array('username', 'message');
+ extract($phpbb_dispatcher->trigger_event('core.ucp_restore_permissions', compact($vars)));
+
trigger_error($message);
break;