[PHP] core.ucp_switch_permissions

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

[PHP] core.ucp_switch_permissions

Post by KillBill. »

  • Identifer: core.ucp_switch_permissions
    Location: ucp.php
    Parameters: $user_id, $user_row, $message
    Explanation: phpBB Arcade switch permissions + Adding extra messages

Code: Select all

		$message = sprintf($user->lang['PERMISSIONS_TRANSFERRED'], $user_row['username']);

		$vars = array('user_id', 'user_row', 'message');
		extract($phpbb_dispatcher->trigger_event('core.ucp_switch_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-13609

Post Reply