You are here

function globallink_block_update_submission_status in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_block/globallink_block.inc \globallink_block_update_submission_status()

Updates block submission status.

Parameters

string $submission_ticket: The submission ticket.

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

2 calls to globallink_block_update_submission_status()
globallink_block_clear_cancelled_documents in globallink_block/globallink_block.inc
Clears cancelled block documents.
globallink_block_get_submission_status in globallink_block/globallink_block.inc
Gets block submission status.

File

globallink_block/globallink_block.inc, line 855

Code

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