mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[feature/add_events] Change alter -> modify in event name
PHPBB3-9550
This commit is contained in:
@@ -1263,7 +1263,7 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
|
|||||||
/**
|
/**
|
||||||
* Use this event to change the output of get_username_string()
|
* Use this event to change the output of get_username_string()
|
||||||
*
|
*
|
||||||
* @event core.alter_username_string
|
* @event core.modify_username_string
|
||||||
* @var string mode profile|username|colour|full|no_profile
|
* @var string mode profile|username|colour|full|no_profile
|
||||||
* @var int user_id String or array of additional url
|
* @var int user_id String or array of additional url
|
||||||
* parameters
|
* parameters
|
||||||
@@ -1278,7 +1278,7 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
|
|||||||
* @since 3.1-A1
|
* @since 3.1-A1
|
||||||
*/
|
*/
|
||||||
$vars = array('mode', 'user_id', 'username', 'username_colour', 'guest_username', 'custom_profile_url', 'username_string');
|
$vars = array('mode', 'user_id', 'username', 'username_colour', 'guest_username', 'custom_profile_url', 'username_string');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.alter_username_string', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.modify_username_string', compact($vars)));
|
||||||
|
|
||||||
return $username_string;
|
return $username_string;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user