You are here

function profile_preprocess_author_pane in Author Pane 5

Same name and namespace in other branches
  1. 6.2 modules/profile.author-pane.inc \profile_preprocess_author_pane()
  2. 6 modules/profile.author-pane.inc \profile_preprocess_author_pane()

Implementation of hook_preprocess_author_pane().

File

modules/profile.author-pane.inc, line 11
Provides a preprocess function on behalf of the profile module.

Code

function profile_preprocess_author_pane(&$variables) {
  $account_id = $variables['account']->uid;
  if ($account_id != 0) {
    $variables['profile'] = profile_view_profile($variables['account']);
  }
}