You are here

function globallink_beans_update_submission_status in GlobalLink Connect for Drupal 7.6

Updates beans submission status.

Parameters

string $submission_ticket: The submission ticket.

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

2 calls to globallink_beans_update_submission_status()
globallink_beans_clear_cancelled_documents in globallink_beans/globallink_beans.inc
Clears cancelled beans documents.
globallink_beans_get_submission_status in globallink_beans/globallink_beans.inc
Gets beans submission status.

File

globallink_beans/globallink_beans.inc, line 600

Code

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