contact_admin_delete_submit

Definition

contact_admin_delete_submit($form_id, $form_values)
modules/contact/contact.module, line 269

Description

Process category delete form submission.

Code

<?php
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';
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.