function ad_multiple_delete_confirm_submit in Advertisement 5
Same name and namespace in other branches
- 5.2 ad.module \ad_multiple_delete_confirm_submit()
- 6.3 ad.admin.inc \ad_multiple_delete_confirm_submit()
- 6 ad.admin.inc \ad_multiple_delete_confirm_submit()
- 6.2 ad.admin.inc \ad_multiple_delete_confirm_submit()
- 7 ad.admin.inc \ad_multiple_delete_confirm_submit()
Perform the actual ad deletions.
File
- ./
ad.module, line 1811 - An advertising system for Drupal powered websites.
Code
function ad_multiple_delete_confirm_submit($form_id, $form_values) {
if ($form_values['confirm']) {
foreach ($form_values['ads'] as $aid => $value) {
node_delete($aid);
}
drupal_set_message(t('The ads have been deleted.'));
}
return 'admin/content/ad';
}