You are here

function user_badges_delete_form in User Badges 7

Same name and namespace in other branches
  1. 5 user_badges.module \user_badges_delete_form()
  2. 6.2 user_badges.module \user_badges_delete_form()
  3. 6 user_badges.module \user_badges_delete_form()
  4. 7.2 user_badges.admin.inc \user_badges_delete_form()
  5. 7.3 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 933
@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,
  )), BASE_ADMIN_PATH);
}