function globallink_taxonomy_update_status in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_taxonomy/globallink_taxonomy.inc \globallink_taxonomy_update_status()
Updates taxonomy status.
Parameters
object $globallink: GlobalLink object.
string $status: The new status. Defaults to 'Pending Translations.'
2 calls to globallink_taxonomy_update_status()
- globallink_taxonomy_get_translated in globallink_taxonomy/
globallink_taxonomy.inc - Gets number of translated taxonomies.
- globallink_taxonomy_update_deleted_records in globallink_taxonomy/
globallink_taxonomy.inc - Updates status for deleted taxonomies.
File
- globallink_taxonomy/
globallink_taxonomy.inc, line 995
Code
function globallink_taxonomy_update_status(&$globallink, $status = 'Pending Translations') {
db_update('globallink_core_taxonomy')
->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();
}