function theme_gravatar in Gravatar integration 5
print Gravatar
1 theme call to theme_gravatar()
- gravatar_comment in ./
gravatar.module - Implementation of hook_comment().
File
- ./
gravatar.module, line 156 - Integrates gravatar service for comment user pictures.
Code
function theme_gravatar($grav_url, $name = '', $homepage = '') {
$alt = t("@user's picture", array(
'@user' => $name ? $name : variable_get('anonymous', t('Anonymous')),
));
$picture = theme('image', $grav_url, $alt, $alt, '', FALSE);
if (!empty($homepage)) {
$picture = l($picture, $homepage, array(
'title' => t('View user website.'),
), NULL, NULL, FALSE, TRUE);
}
$output = "\n<div class=\"picture\">" . $picture . "</div>\n";
return $output;
}