I have a view containing saved user webform drafts set up in a table format. I have given permission to the authenticated user to delete own submissions. When clicking the delete link located on the table it redirects user to a separate page asking "Are you sure you want to delete this submission?" I'd like to accomplish one of two things.
Have no delete confirmation, when the user clicks delete it is immediately deleted. Preferred
Have the delete confirmation page as a pop up.
I'm new to coding drupal modules but I believe I have isolated the code to be found within the webform.submissions.inc folder, line 465 - 467:
$question = t('Are you sure you want to delete this submission?');
return confirm_form($form, NULL, "node/{$node->nid}/submission/{$submission->sid}", $question, t('Delete'), t('Cancel'));
Any help would be appreciated, I have searched and researched and keep coming to the same results.