contact_admin_delete_submit

Versions
4.7 – 5
contact_admin_delete_submit($form_id, $form_values)
6
contact_admin_delete_submit($form, &$form_state)

Process category delete form submission.

Code

modules/contact.module, line 262

<?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' => theme('placeholder', $form_values['category']))));
  watchdog('mail', t('Contact form: category %category deleted.', array('%category' => theme('placeholder', $form_values['category']))), WATCHDOG_NOTICE);

  return 'admin/contact';
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.