You are here

function globallink_taxonomy_update_submission in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_taxonomy/globallink_taxonomy.inc \globallink_taxonomy_update_submission()

Updates taxonomy submission.

Parameters

object $globallink: GlobalLink object.

1 call to globallink_taxonomy_update_submission()
globallink_taxonomy_cancel_submission in globallink_taxonomy/globallink_taxonomy.inc
Cancels taxonomy submission.

File

globallink_taxonomy/globallink_taxonomy.inc, line 532

Code

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