You are here

function profile_preprocess_author_pane in Author Pane 6

Same name and namespace in other branches
  1. 5 modules/profile.author-pane.inc \profile_preprocess_author_pane()
  2. 6.2 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) {

    // As of D6, this just loads the content array and doesn't return anything.
    profile_view_profile($variables['account']);
    $variables['profile'] = $variables['account']->content;
  }
}