You are here

function site_verify_delete_form_submit in Site verification 6

Same name and namespace in other branches
  1. 7.2 site_verify.admin.inc \site_verify_delete_form_submit()
  2. 7 site_verify.admin.inc \site_verify_delete_form_submit()

File

./site_verify.admin.inc, line 233

Code

function site_verify_delete_form_submit($form, &$form_state) {
  $record = $form_state['values']['record'];
  db_query("DELETE FROM {site_verify} WHERE svid = %d", $record['svid']);
  drupal_set_message(t('Verification for %engine has been deleted.', array(
    '%engine' => $record['engine']['name'],
  )));
  watchdog('site_verify', 'Verification for %engine deleted.', array(
    '%engine' => $record['engine']['name'],
  ), WATCHDOG_NOTICE);
  $form_state['redirect'] = 'admin/build/site-verify';
}