function ad_confirm_group_delete_submit in Advertisement 6.3
Same name and namespace in other branches
- 5.2 ad.module \ad_confirm_group_delete_submit()
- 5 ad.module \ad_confirm_group_delete_submit()
- 6 ad.admin.inc \ad_confirm_group_delete_submit()
- 6.2 ad.admin.inc \ad_confirm_group_delete_submit()
- 7 ad.admin.inc \ad_confirm_group_delete_submit()
Delete ad group.
File
- ./
ad.admin.inc, line 842 - Advertisement admin pages and functions.
Code
function ad_confirm_group_delete_submit($form, &$form_state) {
taxonomy_del_term($form_state['values']['tid']);
drupal_set_message(t('The ad group %term has been deleted.', array(
'%term' => $form_state['values']['name'],
)));
watchdog('ad', 'mailarchive: deleted %term ad group.', array(
'%term' => $form_state['values']['name'],
));
$form_state['redirect'] = 'admin/content/ad/groups';
}