gravatar.author-pane.inc in Gravatar integration 6
Author Pane module compatibility.
File
gravatar.author-pane.incView source
<?php
/**
* @file
* Author Pane module compatibility.
*/
/**
* Implementation of hook_preprocess_author_pane().
*/
function gravatar_preprocess_author_pane(&$variables) {
// this method does not work because the Gravatar image is not stored locally (file_exists() test fail)
//$account = $variables['account'];
//$account->picture = _gravatar_get_account_user_picture($account);
//$variables['account'] = $account;
$variables['picture'] = theme('user_picture', $variables['account']);
}
Functions
Name | Description |
---|---|
gravatar_preprocess_author_pane | Implementation of hook_preprocess_author_pane(). |