You are here

function theme_user_badge_group in User Badges 5

Same name and namespace in other branches
  1. 6.2 user_badges.module \theme_user_badge_group()
  2. 6 user_badges.module \theme_user_badge_group()
  3. 7 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()

4 theme calls to theme_user_badge_group()
user_badges_delete_form in ./user_badges.module
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
Returns HTML representation of user badges for given user $array is array defining criteria for user_load() most common use will be: user_badges_for_user(array('uid'=>123));
user_badges_user in ./user_badges.module
Implementation of hook_user() This handles assignment of badges based on role. When role is assigned or removed, appropriate badges are added or removed.

File

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

Code

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