You are here

function globallink_entity_update_submission_status in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_entity/globallink_entity.inc \globallink_entity_update_submission_status()

Updates entity submission status.

Parameters

string $submission_ticket: The submission ticket.

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

2 calls to globallink_entity_update_submission_status()
globallink_entity_clear_cancelled_documents in globallink_entity/globallink_entity.inc
Clears cancelled entity documents.
globallink_entity_get_submission_status in globallink_entity/globallink_entity.inc
Gets entity submission status.

File

globallink_entity/globallink_entity.inc, line 1787

Code

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