mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/14043] Add core.get_avatar_after php event
PHPBB3-14043
This commit is contained in:
parent
525a62f72e
commit
5e3ebda0da
1 changed files with 11 additions and 1 deletions
|
@ -4806,6 +4806,16 @@ function phpbb_get_avatar($row, $alt, $ignore_config = false)
|
|||
'alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
|
||||
}
|
||||
|
||||
/**
|
||||
* Event to modify HTML <img> tag of avatar
|
||||
*
|
||||
* @event core.get_avatar_after
|
||||
* @var string html The HTML <img> tag of generated avatar
|
||||
* @since 3.1.6
|
||||
*/
|
||||
$vars = array('html');
|
||||
extract($phpbb_dispatcher->trigger_event('core.get_avatar_after', compact($vars)));
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue