You are here

function ife_form_id_delete_form_submit in Inline Form Errors 7.2

Same name and namespace in other branches
  1. 6.2 ife.settings.inc \ife_form_id_delete_form_submit()
  2. 6 ife.settings.inc \ife_form_id_delete_form_submit()
  3. 7 ife.settings.inc \ife_form_id_delete_form_submit()

Submit for confirm delete form for IFE form_ids.

File

./ife.settings.inc, line 198
Admin settings pages.

Code

function ife_form_id_delete_form_submit($form, &$form_state) {
  $form_id = $form_state['values']['fid'];

  // @todo Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("DELETE FROM {ife} WHERE form_id = '%s'", $form_id) */
  db_delete('ife')
    ->condition('form_id', $form_id)
    ->execute();
  drupal_set_message(t('The form %form_id has been deleted.', array(
    '%form_id' => $form_id,
  )));
  ife_load_form_ids(TRUE);
  drupal_goto('admin/config/user-interface/ife');
}