You are here

function globallink_update_submission_status in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_node.inc \globallink_update_submission_status()

Updates submission status for a translation.

Parameters

string $submission_ticket: The submission ticket.

string $status: The submission status. Defaults to 'Cancelled'.

2 calls to globallink_update_submission_status()
globallink_clear_cancelled_documents in ./globallink_node.inc
Clears cancelled documents.
globallink_get_submission_status in ./globallink_node.inc
Gets submission status for a translation.

File

./globallink_node.inc, line 2101

Code

function globallink_update_submission_status($submission_ticket, $status = 'Cancelled') {
  db_update('globallink_core')
    ->fields(array(
    'status' => $status,
    'timestamp' => REQUEST_TIME,
  ))
    ->condition('submission_ticket', $submission_ticket, '=')
    ->execute();
}