function user_badges_delete_form in User Badges 7.3
Same name and namespace in other branches
- 5 user_badges.module \user_badges_delete_form()
- 6.2 user_badges.module \user_badges_delete_form()
- 6 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()
User badge deletion form.
1 string reference to 'user_badges_delete_form'
- user_badges_menu in ./
user_badges.module - Implements hook_menu().
File
- ./
user_badges.admin.inc, line 1101 - @brief User Badges admin functions
Code
function user_badges_delete_form($form, $form_state, $badge) {
$form = array();
$form['bid'] = array(
'#type' => 'value',
'#value' => $badge->bid,
);
return confirm_form($form, t('Are you sure you want to delete the badge %name?', array(
'%name' => $badge->name,
)), USER_BADGES_ADMIN_PATH);
}