You are here

function globallink_fieldable_panels_update_status in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_fieldable_panels/globallink_fieldable_panels.inc \globallink_fieldable_panels_update_status()

Updates fieldable panels status.

Parameters

object $globallink: GlobalLink object.

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

2 calls to globallink_fieldable_panels_update_status()
globallink_fieldable_panels_get_translated in globallink_fieldable_panels/globallink_fieldable_panels.inc
Gets number of translated fieldable panels.
globallink_fieldable_panels_update_deleted_records in globallink_fieldable_panels/globallink_fieldable_panels.inc
Updates status for deleted fieldable panels.

File

globallink_fieldable_panels/globallink_fieldable_panels.inc, line 919

Code

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