function _webform_results_clear in Webform 5
Delete all submission for a form.
Parameters
$nid: ID of node for which to clear submissions.
1 string reference to '_webform_results_clear'
- webform_results in ./
webform.module - Menu callback for all content under admin/content/webform.
File
- ./
webform.inc, line 50
Code
function _webform_results_clear($nid) {
drupal_set_title(t("Clear Form Submissions"));
$form = array();
$form['nid'] = array(
'#type' => 'value',
'#value' => $nid,
);
$question = t("Are you sure you want to delete all submissions for this form?");
return confirm_form($form, $question, 'node/' . $nid . '/results', NULL, t('Clear'), t('Cancel'));
}