You are here

function globallink_webform_update_submission in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_webform/globallink_webform.inc \globallink_webform_update_submission()

Updates webform submission.

Parameters

object $globallink: GlobalLink object.

1 call to globallink_webform_update_submission()
globallink_webform_cancel_submission in globallink_webform/globallink_webform.inc
Cancels webform submission.

File

globallink_webform/globallink_webform.inc, line 648

Code

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