You are here

function globallink_cancel_submission in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_node.inc \globallink_cancel_submission()

Cancels submission to GlobalLink.

Parameters

string $selected_submission: The submission ticket.

1 call to globallink_cancel_submission()
globallink_node_active_select_form_submit in ./globallink_active_submissions.inc
Handles submission of active select form.

File

./globallink_node.inc, line 291

Code

function globallink_cancel_submission($selected_submission) {
  $pd4 = globallink_get_project_director_details();
  $globallink = new GlobalLink();
  $submission_name = globallink_get_submission_name($selected_submission);
  $globallink->submissionName = $submission_name;
  $globallink->submissionTicket = $selected_submission;
  globallink_cancel_pd_submission($pd4, $globallink);
  globallink_update_row_submission($globallink);
}