You are here

function mass_contact_admin_delete_submit in Mass Contact 5

Same name and namespace in other branches
  1. 5.2 mass_contact.module \mass_contact_admin_delete_submit()
  2. 6 mass_contact.module \mass_contact_admin_delete_submit()
  3. 7 mass_contact.admin.inc \mass_contact_admin_delete_submit()

Process category delete form submission.

File

./mass_contact.module, line 244
Enables mass contact form to selected roles.

Code

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