function ad_confirm_group_delete in Advertisement 5.2
Same name and namespace in other branches
- 5 ad.module \ad_confirm_group_delete()
- 6.3 ad.admin.inc \ad_confirm_group_delete()
- 6 ad.admin.inc \ad_confirm_group_delete()
- 6.2 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.module, line 2367 - An advertising system for Drupal powered websites.
Code
function ad_confirm_group_delete($term) {
$form['tid'] = array(
'#type' => 'value',
'#value' => $term['tid'],
);
$form['name'] = array(
'#type' => 'value',
'#value' => $term['name'],
);
return confirm_form($form, t('Are you sure you want to delete the ad group %name?', array(
'%name' => $term['name'],
)), 'admin/content/ad/group', t('Ads that were within this group will not be deleted. This action cannot be undone.'), t('Delete'), t('Cancel'));
}