You are here

function _webform_submission_delete in Webform 5

Delete one form submission.

Parameters

$nid: ID of node for which this webform was submitted.

$sid: ID of submission to be deleted (from webform_submitted_data).

1 string reference to '_webform_submission_delete'
webform_results in ./webform.module
Menu callback for all content under admin/content/webform.

File

./webform.inc, line 81

Code

function _webform_submission_delete($nid, $sid) {
  drupal_set_title(t("Delete Form Submission"));
  $form = array();
  $form['nid'] = array(
    '#type' => 'value',
    '#value' => $nid,
  );
  $form['sid'] = array(
    '#type' => 'value',
    '#value' => $sid,
  );
  $question = t("Are you sure you want to delete this submission?");
  return confirm_form($form, $question, 'node/' . $nid . '/results', NULL, t('Delete'), t('Cancel'));
}