[PHP] core.ucp_restore_permissions

Request hook events and what data needs to be sent for the new hook system.
Post Reply
KillBill.
Registered User
Posts: 20
Joined: Wed Feb 11, 2015 6:07 am

[PHP] core.ucp_restore_permissions

Post by KillBill. »

  • Identifer: core.ucp_restore_permissions
    Location: ucp.php
    Parameters: $message
    Explanation: phpBB Arcade restore permissions + Adding extra messages
Example:

Code: Select all

		$message = $user->lang['PERMISSIONS_RESTORED'];

		$vars = array('message');
		extract($phpbb_dispatcher->trigger_event('core.ucp_restore_permissions', compact($vars)));

		$message .= '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
Ticket :: https://tracker.phpbb.com/browse/PHPBB3-13608

Post Reply