You are here

function user_badges_get_badge in User Badges 6

Same name and namespace in other branches
  1. 5 user_badges.module \user_badges_get_badge()
  2. 6.2 user_badges.module \user_badges_get_badge()

Return badge object for given badge id

1 call to user_badges_get_badge()
user_badges_delete_form in ./user_badges.module

File

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

Code

function user_badges_get_badge($bid) {
  return db_fetch_object(db_query('SELECT * FROM {user_badges_badges} WHERE bid = %d', $bid));
}