function globallink_beans_update_status in GlobalLink Connect for Drupal 7.6
Updates beans status.
Parameters
object $globallink: GlobalLink object.
string $status: The new status. Defaults to 'Pending Translations.'
2 calls to globallink_beans_update_status()
- globallink_beans_get_translated in globallink_beans/
globallink_beans.inc - Gets number of translated beans.
- globallink_beans_update_deleted_records in globallink_beans/
globallink_beans.inc - Updates status for deleted beans.
File
- globallink_beans/
globallink_beans.inc, line 1432
Code
function globallink_beans_update_status(&$globallink, $status = 'Pending Translations') {
db_update('globallink_core_beans')
->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();
}