You are here

function globallink_interface_update_status in GlobalLink Connect for Drupal 7.6

Updates interface status.

Parameters

object $globallink: GlobalLink object.

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

2 calls to globallink_interface_update_status()
globallink_interface_get_translated in globallink_interface/globallink_interface.inc
Gets number of translated interfaces.
globallink_interface_update_deleted_records in globallink_interface/globallink_interface.inc
Updates status for deleted interfaces.

File

globallink_interface/globallink_interface.inc, line 432

Code

function globallink_interface_update_status(&$globallink, $status = 'Pending Translations') {
  db_update('globallink_core_interface')
    ->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();
}