function user_badges_delete_form in User Badges 6
Same name and namespace in other branches
- 5 user_badges.module \user_badges_delete_form()
- 6.2 user_badges.module \user_badges_delete_form()
- 7 user_badges.admin.inc \user_badges_delete_form()
- 7.2 user_badges.admin.inc \user_badges_delete_form()
- 7.3 user_badges.admin.inc \user_badges_delete_form()
1 string reference to 'user_badges_delete_form'
- user_badges_menu in ./
user_badges.module - Implements hook_menu().
File
- ./
user_badges.module, line 870 - @brief User Badges module file
Code
function user_badges_delete_form($form_state, $bid) {
if ($badge = user_badges_get_badge($bid)) {
$form = array();
$form['badge'] = array(
'#value' => theme('user_badge_group', array(
theme('user_badge', $badge),
)),
);
$form['bid'] = array(
'#type' => 'value',
'#value' => $bid,
);
return confirm_form($form, t('Are you sure you want to delete the badge %name?', array(
'%name' => $badge->name,
)), 'admin/user/user_badges');
}
form_set_error('', t('This badge does not exist.'));
}