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
|
@ -1159,7 +1159,7 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
||||||
/**
|
/**
|
||||||
* This event is used for performing actions directly before marking forums,
|
* This event is used for performing actions directly before marking forums,
|
||||||
* topics or posts as read.
|
* topics or posts as read.
|
||||||
*
|
*
|
||||||
* It is also possible to prevent the marking. For that, the $should_markread parameter
|
* It is also possible to prevent the marking. For that, the $should_markread parameter
|
||||||
* should be set to FALSE.
|
* should be set to FALSE.
|
||||||
*
|
*
|
||||||
|
@ -4806,6 +4806,16 @@ function phpbb_get_avatar($row, $alt, $ignore_config = false)
|
||||||
'alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
|
'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;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue