function ad_confirm_group_delete in Advertisement 6.2
Same name and namespace in other branches
- 5.2 ad.module \ad_confirm_group_delete()
- 5 ad.module \ad_confirm_group_delete()
- 6.3 ad.admin.inc \ad_confirm_group_delete()
- 6 ad.admin.inc \ad_confirm_group_delete()
- 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'
File
- ./
ad.admin.inc, line 820 - 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'));
}