function mass_contact_admin_delete_submit in Mass Contact 6
Same name and namespace in other branches
- 5.2 mass_contact.module \mass_contact_admin_delete_submit()
- 5 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: An associative array containing the structure of the form.
form_state: A keyed array containing the current state of the form.
File
- ./
mass_contact.module, line 616 - 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, &$form_state) {
db_query("DELETE FROM {mass_contact} WHERE cid = %d", arg(4));
drupal_set_message(t('Category %category has been deleted.', array(
'%category' => $form_state['values']['category'],
)));
watchdog('mass_contact', 'Mass Contact form: category %category deleted.', array(
'%category' => $form_state['values']['category'],
));
$form_state['redirect'] = 'admin/build/mass_contact';
}