You are here

user_badges.author-pane.inc in Author Pane 6

Provides a preprocess function on behalf of the user badges module.

File

modules/user_badges.author-pane.inc
View source
<?php

/**
 * @file
 *   Provides a preprocess function on behalf of the user badges module.
 */

/**
 * Implementation of hook_preprocess_author_pane().
 */
function user_badges_preprocess_author_pane(&$variables) {
  $account_id = $variables['account']->uid;
  if ($account_id != 0) {
    $variables['user_badges'] = user_badges_for_uid($account_id);
  }
}

Functions

Namesort descending Description
user_badges_preprocess_author_pane Implementation of hook_preprocess_author_pane().