You are here

function globallink_update_row_submission in GlobalLink Connect for Drupal 7.6

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

Updates a submission.

Parameters

object $globallink: A GlobalLink object.

1 call to globallink_update_row_submission()
globallink_cancel_submission in ./globallink_node.inc
Cancels submission to GlobalLink.

File

./globallink_node.inc, line 352

Code

function globallink_update_row_submission(&$globallink) {
  db_update('globallink_core')
    ->fields(array(
    'status' => 'Cancelled',
    'timestamp' => REQUEST_TIME,
    'changed' => 1,
  ))
    ->condition('submission_ticket', $globallink->submissionTicket, '=')
    ->condition('submission', $globallink->submissionName, '=')
    ->execute();
}