You are here

function jammer_messages_settings_confirm_delete_submit in Jammer 7

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

Deletes settings that would jam messages.

File

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

Code

function jammer_messages_settings_confirm_delete_submit($form, &$form_state) {
  db_delete('jammer_messages')
    ->condition('mid', $form_state['values']['message']->mid)
    ->execute();
  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/config/user-interface/jammer_messages';
}