You are here

function globallink_webform_update_status in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_webform/globallink_webform.inc \globallink_webform_update_status()

Updates webform status.

Parameters

object $globallink: GlobalLink object.

string $status: The new status. Defaults to 'Pending Translations.'

2 calls to globallink_webform_update_status()
globallink_webform_get_translated in globallink_webform/globallink_webform.inc
Gets number of translated webforms.
globallink_webform_update_deleted_records in globallink_webform/globallink_webform.inc
Updates status for deleted webforms.

File

globallink_webform/globallink_webform.inc, line 397

Code

function globallink_webform_update_status(&$globallink, $status = 'Pending Translations') {
  db_update('globallink_core_webform')
    ->fields(array(
    'status' => $status,
    'timestamp' => REQUEST_TIME,
  ))
    ->condition('submission', $globallink->submissionName, '=')
    ->condition('document_ticket', $globallink->documentTicket, '=')
    ->condition('source', $globallink->sourceLocale, '=')
    ->condition('target', $globallink->targetLocale, '=')
    ->execute();
}