function globallink_webform_cancel_submission in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 globallink_webform/globallink_webform.inc \globallink_webform_cancel_submission()
Cancels webform submission.
Parameters
string $selected_submission: The name of the submission.
1 call to globallink_webform_cancel_submission()
- globallink_webform_active_select_form_submit in globallink_webform/
globallink_webform_active_submissions.inc - Handles submission of active select form.
File
- globallink_webform/
globallink_webform.inc, line 488
Code
function globallink_webform_cancel_submission($selected_submission) {
$pd4 = globallink_get_project_director_details();
$globallink = new GlobalLink();
$submission_name = globallink_webform_get_submission_name($selected_submission);
$globallink->submissionName = $submission_name;
$globallink->submissionTicket = $selected_submission;
globallink_cancel_pd_submission($pd4, $globallink);
globallink_webform_update_submission($globallink);
}