You are here

function globallink_beans_update_submission in GlobalLink Connect for Drupal 7.6

Updates beans submission.

Parameters

object $globallink: GlobalLink object.

1 call to globallink_beans_update_submission()
globallink_beans_cancel_submission in globallink_beans/globallink_beans.inc
Cancels beans submission.

File

globallink_beans/globallink_beans.inc, line 655

Code

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