You are here

function theme_user_badge_group in User Badges 7

Same name and namespace in other branches
  1. 5 user_badges.module \theme_user_badge_group()
  2. 6.2 user_badges.module \theme_user_badge_group()
  3. 6 user_badges.module \theme_user_badge_group()
  4. 7.2 user_badges.module \theme_user_badge_group()
  5. 7.3 user_badges.module \theme_user_badge_group()

Return html representation of a group of badges $badgeimages is an array of badge image tags from theme_user_badge()

5 theme calls to theme_user_badge_group()
user_badges_block_view in ./user_badges.module
Implements hook_block_view().
user_badges_for_uid in ./user_badges.module
Returns HTML representation of user badges for given uid
user_badges_for_user in ./user_badges.module
Get all user badges for a user.
user_badges_userweight_page in ./user_badges.module
Define the page on user/uid/badges.
user_badges_user_view in ./user_badges.module
Implements hook_user_view().

File

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

Code

function theme_user_badge_group($variables) {
  $badgeimages = $variables['badgeimages'];
  if (!empty($badgeimages)) {
    return '<div class="user_badges">' . implode('', $badgeimages) . '</div>';
  }
}