You are here

function ad_confirm_group_delete in Advertisement 6

Same name and namespace in other branches
  1. 5.2 ad.module \ad_confirm_group_delete()
  2. 5 ad.module \ad_confirm_group_delete()
  3. 6.3 ad.admin.inc \ad_confirm_group_delete()
  4. 6.2 ad.admin.inc \ad_confirm_group_delete()
  5. 7 ad.admin.inc \ad_confirm_group_delete()

Returns a confirmation page when deleting an ad group and all of its ads.

1 string reference to 'ad_confirm_group_delete'
ad_menu in ./ad.module
Implementation of hook_menu().

File

./ad.admin.inc, line 888
Advertisement admin pages and functions.

Code

function ad_confirm_group_delete($form_state, $group = NULL) {
  $form['tid'] = array(
    '#type' => 'value',
    '#value' => $group->tid,
  );
  $form['name'] = array(
    '#type' => 'value',
    '#value' => check_plain($group->name),
  );
  return confirm_form($form, t('Are you sure you want to delete the ad group %name?', array(
    '%name' => $group->name,
  )), 'admin/content/ad/groups', t('Ads that were within this group will not be deleted.  This action cannot be undone.'), t('Delete'), t('Cancel'));
}