function user_badge_load in User Badges 7.3
Same name and namespace in other branches
- 7.4 user_badges.module \user_badge_load()
- 7 user_badges.module \user_badge_load()
- 7.2 user_badges.module \user_badge_load()
Load a badge object from database.
1 call to user_badge_load()
- user_badges_delete_form_submit in ./
user_badges.admin.inc - Submit handler for user badge deletion.
File
- ./
user_badges.module, line 1010 - @brief User Badges module file
Code
function user_badge_load($bid) {
return db_select('user_badges_badges', 'ubb')
->condition('bid', $bid)
->fields('ubb')
->execute()
->fetchObject();
}