You are here

function contact_admin_delete_submit in Drupal 5

Same name and namespace in other branches
  1. 4 modules/contact.module \contact_admin_delete_submit()
  2. 6 modules/contact/contact.admin.inc \contact_admin_delete_submit()

Process category delete form submission.

File

modules/contact/contact.module, line 269
Enables the use of personal and site-wide contact forms.

Code

function contact_admin_delete_submit($form_id, $form_values) {
  db_query("DELETE FROM {contact} WHERE cid = %d", arg(4));
  drupal_set_message(t('Category %category has been deleted.', array(
    '%category' => $form_values['category'],
  )));
  watchdog('mail', t('Contact form: category %category deleted.', array(
    '%category' => $form_values['category'],
  )), WATCHDOG_NOTICE);
  return 'admin/build/contact';
}