You are here

function smtp_admin_criteria_delete_submit in SMTP Authentication Support 7.2

Submit handler.

Parameters

form: An associative array containing the structure of the form.

form_state: A keyed array containing the current state of the form.

File

./smtp.admin.inc, line 816
Administrative page code for the smtp module.

Code

function smtp_admin_criteria_delete_submit($form, $form_state) {
  $result = db_delete('smtp_selection_criteria')
    ->condition('cid', $form_state['values']['cid'])
    ->execute();

  // Go back to the configuration form
  drupal_goto("admin/config/system/smtp");
}