mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/13608] Add core.ucp_restore_permissions event
PHPBB3-13608
This commit is contained in:
parent
2d742beb92
commit
15f6d66a61
1 changed files with 12 additions and 0 deletions
|
@ -260,6 +260,18 @@ switch ($mode)
|
||||||
add_log('admin', 'LOG_ACL_RESTORE_PERMISSIONS', $username);
|
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>');
|
$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);
|
trigger_error($message);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue