function mass_contact_admin_delete_submit in Mass Contact 5.2
Same name and namespace in other branches
- 5 mass_contact.module \mass_contact_admin_delete_submit()
- 6 mass_contact.module \mass_contact_admin_delete_submit()
- 7 mass_contact.admin.inc \mass_contact_admin_delete_submit()
Does the actual deleting of the category.
Parameters
form_id: The unique string identifying the form.
form_values: The array of values returned by the form.
File
- ./
mass_contact.module, line 460 - This is the main code file for the Mass Contact module. This module enables users to contact multiple users through 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';
}