You are here

function ad_confirm_group_delete_submit in Advertisement 6.3

Same name and namespace in other branches
  1. 5.2 ad.module \ad_confirm_group_delete_submit()
  2. 5 ad.module \ad_confirm_group_delete_submit()
  3. 6 ad.admin.inc \ad_confirm_group_delete_submit()
  4. 6.2 ad.admin.inc \ad_confirm_group_delete_submit()
  5. 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';
}