You are here

function user_badges_preprocess_node in User Badges 7.2

Same name and namespace in other branches
  1. 7 user_badges.module \user_badges_preprocess_node()
  2. 7.3 user_badges.module \user_badges_preprocess_node()

Implements hook_preprocess_node().

File

./user_badges.module, line 1368
@brief User Badges module file

Code

function user_badges_preprocess_node(&$variables, $hook) {
  if (user_access('access user badges')) {
    $uid = $variables['uid'];
    $account = user_load($uid);
    $variables['user_badges'] = user_badges_for_user($uid);
  }
}