diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2015-07-21 21:20:24 +0200 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2015-07-21 21:20:24 +0200 |
commit | 5e3ebda0dab8f221c59ce5590ccfa4d27c09216f (patch) | |
tree | 577f65b79579f28af6e527803a03f754ed60fe55 /phpBB/includes/functions.php | |
parent | 525a62f72e872f8d19e2ec3f2e1c105e9fae4f75 (diff) | |
download | forums-5e3ebda0dab8f221c59ce5590ccfa4d27c09216f.tar forums-5e3ebda0dab8f221c59ce5590ccfa4d27c09216f.tar.gz forums-5e3ebda0dab8f221c59ce5590ccfa4d27c09216f.tar.bz2 forums-5e3ebda0dab8f221c59ce5590ccfa4d27c09216f.tar.xz forums-5e3ebda0dab8f221c59ce5590ccfa4d27c09216f.zip |
[ticket/14043] Add core.get_avatar_after php event
PHPBB3-14043
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 4159af5678..533bab8936 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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, * topics or posts as read. - * + * * It is also possible to prevent the marking. For that, the $should_markread parameter * 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) . '" />'; } + /** + * 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; } |