You are here

function gravatar_preprocess_author_pane in Gravatar integration 6

Implementation of hook_preprocess_author_pane().

File

./gravatar.author-pane.inc, line 10
Author Pane module compatibility.

Code

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']);
}