From 15f6d66a61cdbaf195327c9f2c3077ffb833e94f Mon Sep 17 00:00:00 2001 From: Jakub Senko Date: Mon, 23 Jan 2017 14:07:44 +0100 Subject: [ticket/13608] Add core.ucp_restore_permissions event PHPBB3-13608 --- phpBB/ucp.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'phpBB/ucp.php') diff --git a/phpBB/ucp.php b/phpBB/ucp.php index 8c74ca1f3c..11b33d3a26 100644 --- a/phpBB/ucp.php +++ b/phpBB/ucp.php @@ -260,6 +260,18 @@ switch ($mode) add_log('admin', 'LOG_ACL_RESTORE_PERMISSIONS', $username); $message = $user->lang['PERMISSIONS_RESTORED'] . '

' . sprintf($user->lang['RETURN_INDEX'], '', ''); + + /** + * 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; -- cgit v1.2.1