You are here

function globallink_block_update_status in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_block/globallink_block.inc \globallink_block_update_status()

Updates block status.

Parameters

object $globallink: GlobalLink object.

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

2 calls to globallink_block_update_status()
globallink_block_get_translated_blocks in globallink_block/globallink_block.inc
Gets number of translated blocks.
globallink_block_update_deleted_records in globallink_block/globallink_block.inc
Updates status for deleted blocks.

File

globallink_block/globallink_block.inc, line 630

Code

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