You are here

function user_badge_load in User Badges 7

Same name and namespace in other branches
  1. 7.4 user_badges.module \user_badge_load()
  2. 7.2 user_badges.module \user_badge_load()
  3. 7.3 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 1009
@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();
}