You are here

function jammer_messages_settings_confirm_delete_submit in Jammer 6

Same name and namespace in other branches
  1. 7 jammer_messages.module \jammer_messages_settings_confirm_delete_submit()

File

./jammer_messages.module, line 130
Filter status messages set by drupal_set_message().

Code

function jammer_messages_settings_confirm_delete_submit($form, &$form_state) {
  db_query('DELETE FROM {jammer_messages} WHERE mid = %d', $form_state['values']['message']->mid);
  drupal_set_message(t('The filter for %message was deleted.', array(
    '%message' => $form_state['values']['message']->message_string,
  )));
  watchdog('jammer_messages', '%message filter deleted.', array(
    '%message' => $form_state['values']['message']->message_string,
  ), WATCHDOG_INFO);
  $form_state['redirect'] = 'admin/settings/jammer/jammer_messages';
}